fix-分佣统计

This commit is contained in:
xl
2024-06-26 17:42:44 +08:00
parent b8bed9a1af
commit b0071c5039

View File

@@ -72,7 +72,7 @@ public class CommPlatOrderReturnSummaryServiceImpl extends ServiceImpl<CommPlatO
//查询汇总
List<CommPlatOrderReturnSummary> summaryList = CollUtil.newArrayList();
List<CommPlatOrderReturn> orderList = CollUtil.newArrayList();
Map<String, CommPlatOrderReturnSummary> mapByDay = this.getMapByDay(day);
Map<Integer, CommPlatOrderReturnSummary> mapByDay = this.getMapByDay(day);
LocalDate currentDate = LocalDate.now();
LocalDate nextMonth = currentDate.plusMonths(1);
LocalDate nextMonth15th = nextMonth.withDayOfMonth(15);
@@ -224,14 +224,14 @@ public class CommPlatOrderReturnSummaryServiceImpl extends ServiceImpl<CommPlatO
}
}
private Map<String, CommPlatOrderReturnSummary> getMapByDay(String day) {
private Map<Integer, CommPlatOrderReturnSummary> getMapByDay(String day) {
LambdaQueryWrapper<CommPlatOrderReturnSummary> lqw = new LambdaQueryWrapper<>();
lqw.eq(CommPlatOrderReturnSummary::getDateSn, day);
List<CommPlatOrderReturnSummary> list = list(lqw);
if (CollUtil.isEmpty(list)) {
return CollUtil.newHashMap();
}
Map<String, CommPlatOrderReturnSummary> map = list.stream().collect(Collectors.toMap(CommPlatOrderReturnSummary::getDriverSn, v -> v));
Map<Integer, CommPlatOrderReturnSummary> map = list.stream().collect(Collectors.toMap(CommPlatOrderReturnSummary::getUid, v -> v));
return map;
}