diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/controller/OilNumberController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/controller/OilNumberController.java index 011f4f91a..b33e6b82c 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/controller/OilNumberController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/controller/OilNumberController.java @@ -51,6 +51,16 @@ public class OilNumberController extends BaseController { return getSuccessResult(list); } + @ApiOperation("查询所有油号") + @GetMapping("getList2") + public ResponseObject selectAll2(@RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo, + @RequestParam(value = "pageSize",defaultValue = "10000") Integer pageSize, + OilNumber oilNumber) { + Page page =new Page(pageNo,pageSize); + IPage list = oilPresetPricesService.selectOilNumberList2(page,oilNumber); + return getSuccessResult(list); + } + /** * 通过主键查询单条数据 * diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/mapper/OilNumberMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/mapper/OilNumberMapper.java index dd8e2052d..109ea58ba 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/mapper/OilNumberMapper.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/mapper/OilNumberMapper.java @@ -23,6 +23,7 @@ public interface OilNumberMapper extends BaseMapper { * @return */ IPage selectOilNumberList(Page page, @Param("oilNumber") OilNumber oilNumber); + IPage selectOilNumberList2(Page page, @Param("oilNumber") OilNumber oilNumber); /** * 根据id查询员工信息 diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/mapper/xml/OilNumberMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/mapper/xml/OilNumberMapper.xml index bf03818a6..a9b514352 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/mapper/xml/OilNumberMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/mapper/xml/OilNumberMapper.xml @@ -31,6 +31,19 @@ where store_id = #{oilNumber.storeId} + + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/service/OilNumberService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/service/OilNumberService.java index c14472682..0fe3bd5e8 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/service/OilNumberService.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/service/OilNumberService.java @@ -23,6 +23,7 @@ public interface OilNumberService extends IService { * @return */ public IPage selectOilNumberList(Page page, @Param("oilNumber") OilNumber oilNumber); + public IPage selectOilNumberList2(Page page, @Param("oilNumber") OilNumber oilNumber); /** * 根据id查询员工信息 diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/service/impl/OilNumberServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/service/impl/OilNumberServiceImpl.java index a368198c7..e1096cd8b 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/service/impl/OilNumberServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/service/impl/OilNumberServiceImpl.java @@ -33,6 +33,13 @@ public class OilNumberServiceImpl extends ServiceImpl selectOilNumberList2(Page page, OilNumber oilNumber) { + AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); + oilNumber.setStoreId(nowAccountInfo.getStoreId()); + return baseMapper.selectOilNumberList2(page,oilNumber); + } + @Override public OilNumber selectOilNumberById(int id) { return baseMapper.selectOilNumberById(id); diff --git a/gasStation-uni/pages/index/index.vue b/gasStation-uni/pages/index/index.vue index 7d89587a2..198b4a81d 100644 --- a/gasStation-uni/pages/index/index.vue +++ b/gasStation-uni/pages/index/index.vue @@ -49,18 +49,18 @@ 今日会员价 - 92# + {{oilInfo.oilName}} 会员价 - 6.55 + {{oilInfo.oilPrice}} 国际价 - 6.55 + {{oilInfo.oilPrice}} @@ -105,7 +105,9 @@ - + + + @@ -115,16 +117,24 @@