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},'%') + +