From 4f974132a9f9d26d8c98660cdc2b66725a97d70f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=85=81=E6=9E=9E?= <3422692813@qq.com> Date: Sat, 12 Oct 2024 14:43:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B010.12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/AllOrderInfoController.java | 8 +-- .../order/mapper/AllOrderInfoMapper.java | 2 +- .../order/mapper/xml/AllOrderInfoMapper.xml | 11 +++- .../order/service/AllOrderInfoService.java | 4 +- .../service/impl/AllOrderInfoServiceImpl.java | 34 +++++++++--- .../business/order/vo/AllOrderInfoUniVo.java | 2 + gasStation-uni/pagesMy/myorder/myorder.vue | 55 ++++++------------- 7 files changed, 60 insertions(+), 56 deletions(-) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/AllOrderInfoController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/AllOrderInfoController.java index c76767e20..c112835f1 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/AllOrderInfoController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/AllOrderInfoController.java @@ -319,7 +319,7 @@ public class AllOrderInfoController extends BaseController { @GetMapping("queryByPageUni") public ResponseObject queryByPageUni(@RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo, @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize, - @Param("integralDetail") AllOrderInfo allOrderInfo) { + @Param("integralDetail") AllOrderInfoUniVo allOrderInfo) { Page page = new Page(pageNo, pageSize); IPage iPageList = this.allOrderInfoService.queryByPageUni(page, allOrderInfo); return getSuccessResult(iPageList); @@ -330,9 +330,9 @@ public class AllOrderInfoController extends BaseController { * @param storeId * @return */ - @GetMapping("getConsumptionMoney/{storeId}") - public ResponseObject getConsumptionMoney(@PathVariable Integer storeId){ - return getSuccessResult(allOrderInfoService.getConsumptionMoney(storeId)); + @GetMapping("getConsumptionMoney") + public ResponseObject getConsumptionMoney(AllOrderInfoUniVo allOrderInfo){ + return getSuccessResult(allOrderInfoService.getConsumptionMoney(allOrderInfo)); } /** diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/AllOrderInfoMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/AllOrderInfoMapper.java index be37bd970..dc8e25523 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/AllOrderInfoMapper.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/AllOrderInfoMapper.java @@ -102,5 +102,5 @@ public interface AllOrderInfoMapper extends BaseMapper { // IPage getBlanceANdOrder(Page page, @Param("order") CardValueOrdersDTO allOrderInfo); - IPage queryAllByLimit(Page page, @Param("allOrderInfo") AllOrderInfo allOrderInfo); + IPage queryAllByLimit(Page page, @Param("allOrderInfo") AllOrderInfoUniVo allOrderInfo); } \ No newline at end of file diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/AllOrderInfoMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/AllOrderInfoMapper.xml index 7b8cb41e4..758524e34 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/AllOrderInfoMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/AllOrderInfoMapper.xml @@ -800,15 +800,20 @@ join mt_store m on a.store_id = m.id + a.status = "paid" - a.store_id = #{allOrderInfo.storeId} + and a.store_id = #{allOrderInfo.storeId} and a.user_id = #{allOrderInfo.userId} - - and a.status = #{allOrderInfo.status} + + and a.pay_time between #{allOrderInfo.startTime} and #{allOrderInfo.endTime} + + and a.content like concat('%',#{allOrderInfo.content},'%') + +