From 3701dcb2483643ac40d4b81c021b3d8cdab62402 Mon Sep 17 00:00:00 2001
From: luodangjia <luodangjia>
Date: 星期五, 06 九月 2024 21:50:18 +0800
Subject: [PATCH] 8.9

---
 ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/WithdrawServiceImpl.java |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/WithdrawServiceImpl.java b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/WithdrawServiceImpl.java
index 3583bce..7730e29 100644
--- a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/WithdrawServiceImpl.java
+++ b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/WithdrawServiceImpl.java
@@ -100,8 +100,8 @@
         return userWithdrawRecordVOPage;
     }
     @Override
-    public Page<UserWithdrawRecordVO> withdrawPage1(List<String> cityList,List<Integer> userIds,String nickname, String userPhone, String applyForTime, Integer state, Page<UserWithdrawRecordVO> page) {
-        Page<UserWithdrawRecordVO> userWithdrawRecordVOPage = baseMapper.withdrawPage1(cityList,userIds,nickname, userPhone, applyForTime, state, page);
+    public Page<UserWithdrawRecordVO> withdrawPage1(List<String> cityList,List<Integer> userIds,String nickname, String userPhone, String applyForTime, Integer state, Page<UserWithdrawRecordVO> page,List<String> siteIds) {
+        Page<UserWithdrawRecordVO> userWithdrawRecordVOPage = baseMapper.withdrawPage1(cityList,userIds,nickname, userPhone, applyForTime, state, page,siteIds);
 
         return userWithdrawRecordVOPage;
     }
@@ -155,15 +155,18 @@
         String startDateStr = String.valueOf(startDate);
         String endDateStr = String.valueOf(endDate);
         BigDecimal withdrawalTotalMoney;
+        if (request.getSiteIds()==null){
+            request.setSiteIds(new ArrayList<>());
+        }
         if (OrderConstants.QUARTER.equals(type)) {
             // 用户提现总额
-            withdrawalTotalMoney = baseMapper.withdrawalTotalMoney(cityList, startDateStr, endDateStr);
+            withdrawalTotalMoney = baseMapper.withdrawalTotalMoney(cityList, startDateStr, endDateStr,request.getSiteIds());
         } else if (OrderConstants.YEAR.equals(type)) {
             // 用户提现总额
-            withdrawalTotalMoney = baseMapper.withdrawalTotalMoneyByYear(cityList);
+            withdrawalTotalMoney = baseMapper.withdrawalTotalMoneyByYear(cityList,request.getSiteIds());
         } else if (OrderConstants.MONTH.equals(type)) {
             // 用户提现总额
-            withdrawalTotalMoney = baseMapper.withdrawalTotalMoneyByMonth(cityList);
+            withdrawalTotalMoney = baseMapper.withdrawalTotalMoneyByMonth(cityList,request.getSiteIds());
         } else {
             // 数量初始化
             withdrawalTotalMoney = BigDecimal.ZERO;
@@ -202,8 +205,8 @@
     }
 
     @Override
-    public Page<UserWithdrawRecordVO> withdrawList1(List<String> cityList,Integer userId, Page<UserWithdrawRecordVO> page) {
-        Page<UserWithdrawRecordVO> userWithdrawRecordVOPage = baseMapper.withdrawList1(cityList,userId, page);
+    public Page<UserWithdrawRecordVO> withdrawList1(List<String> cityList,Integer userId, Page<UserWithdrawRecordVO> page,List<String> siteIds) {
+        Page<UserWithdrawRecordVO> userWithdrawRecordVOPage = baseMapper.withdrawList1(cityList,userId, page,siteIds);
         for (UserWithdrawRecordVO record : userWithdrawRecordVOPage.getRecords()) {
             R<UserDto> user = userClient.getUser(record.getUserId());
             System.err.println("==="+user.getData());

--
Gitblit v1.7.1