| | |
| | | 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( |
| | |
| | | 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); |