From bf2a3c2e40859b16a58d34d52c09a4ade96777af Mon Sep 17 00:00:00 2001
From: luodangjia <luodangjia>
Date: 星期四, 19 十二月 2024 10:02:29 +0800
Subject: [PATCH] 12.18

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/ShopBalanceStatementServiceImpl.java |   14 +-------------
 1 files changed, 1 insertions(+), 13 deletions(-)

diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/ShopBalanceStatementServiceImpl.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/ShopBalanceStatementServiceImpl.java
index 518d360..9e265b5 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/ShopBalanceStatementServiceImpl.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/ShopBalanceStatementServiceImpl.java
@@ -53,19 +53,7 @@
                 .add(shopCommissionStatisticsVO.getTotalSubordinateCommission())
                 .add(shopCommissionStatisticsVO.getTotalServiceCharge()));
 
-        IPage<ShopBalanceStatement> statementIPage = page(page, new LambdaQueryWrapper<ShopBalanceStatement>());
-        List<ShopBalanceStatement> records = statementIPage.getRecords();
-        if (!CollectionUtils.isEmpty(records)){
-            List<Integer> shopIds = records.stream().map(ShopBalanceStatement::getShopId).collect(Collectors.toList());
-            List<Shop> shopList = shopService.listByIds(shopIds);
-            records.forEach(st -> {
-                shopList.stream().filter(shop -> shop.getId().equals(st.getShopId())).findFirst().ifPresent(shop -> {
-                    st.setShopName(shop.getName());
-                    st.setShopManagerName(shop.getShopManager());
-                    st.setPhone(shop.getPhone());
-                });
-            });
-        }
+        IPage<ShopBalanceStatement> statementIPage = this.baseMapper.queryShopBalanceStatementPage(page, shopBalanceStatement);
         shopCommissionStatisticsVO.setStatementIPage(statementIPage);
         return shopCommissionStatisticsVO;
     }

--
Gitblit v1.7.1