From db924d7d9d0162e551555536b633c1ce52e00ecb Mon Sep 17 00:00:00 2001 From: luodangjia <luodangjia> Date: 星期一, 13 一月 2025 16:17:03 +0800 Subject: [PATCH] 12.18 --- ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/BalanceChangeRecordServiceImpl.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/BalanceChangeRecordServiceImpl.java b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/BalanceChangeRecordServiceImpl.java index 8f9ef27..021d8f8 100644 --- a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/BalanceChangeRecordServiceImpl.java +++ b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/BalanceChangeRecordServiceImpl.java @@ -86,9 +86,8 @@ throw new ServiceException("页面参数无效"); } - List<WalletStatisticsDetail> walletStatisticsDetailList2 = walletStatisticsDetailList.subList(fromIndex, toIndex); - Map<Integer, BigDecimal> shopCommissionMap = walletStatisticsDetailList2.stream() + Map<Integer, BigDecimal> shopCommissionMap = walletStatisticsDetailList.stream() .collect(Collectors.groupingBy( WalletStatisticsDetail::getChangeType, Collectors.reducing( @@ -102,11 +101,12 @@ BigDecimal totalWithdraw = shopCommissionMap.get(2); BigDecimal totalShopWithdraw = shopCommissionMap.get(7); + List<WalletStatisticsDetail> walletStatisticsDetailList2 = walletStatisticsDetailList.subList(fromIndex, toIndex); WalletStatistics walletStatistics = new WalletStatistics(); Page<WalletStatisticsDetail> walletStatisticsDetailPage = new Page<>(); walletStatisticsDetailPage.setCurrent(current); - walletStatisticsDetailPage.setSize(size); + walletStatisticsDetailPage.setSize(walletStatisticsDetailList.size()); walletStatisticsDetailPage.setRecords(walletStatisticsDetailList2); walletStatistics.setPage(walletStatisticsDetailPage); walletStatistics.setTotalRecharge(totalRecharge); -- Gitblit v1.7.1