Selaa lähdekoodia

fix: 日/月统计 crossExpend 误计入同站充值退款

sumDailyExpend/sumMonthExpend 调用时遗漏 Boolean.TRUE 参数,
导致未过滤 from=to 的非跨店记录(充值、退款),
单店场景下 crossExpend 被错误放大。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
skyline 1 päivä sitten
vanhempi
säilyke
7141cfe676

+ 1 - 1
car-wash-service/src/main/java/com/kym/service/impl/DailyStatServiceImpl.java

@@ -91,7 +91,7 @@ public class DailyStatServiceImpl extends MyBaseServiceImpl<DailyStatMapper, Dai
         var ordersCountMap = washOrderService.countDailyOrders(statDay);
         var incomeMap = splitRecordService.sumDailyIncome(statDay);
         var crossIncomeMap = splitRecordService.sumDailyIncome(statDay, Boolean.TRUE);
-        var expendMap = splitRecordService.sumDailyExpend(statDay);
+        var expendMap = splitRecordService.sumDailyExpend(statDay, Boolean.TRUE);
         var refundMap = splitRecordService.sumDailyRefund(statDay);
         var rechargeCountMap = splitRecordService.countDailyRecharge(statDay);
         var refundCountMap = splitRecordService.countDailyRefund(statDay);

+ 1 - 1
car-wash-service/src/main/java/com/kym/service/impl/MonthStatServiceImpl.java

@@ -93,7 +93,7 @@ public class MonthStatServiceImpl extends MyBaseServiceImpl<MonthStatMapper, Mon
         Map<String, Integer> ordersCountMap = washOrderService.countMonthOrders(statDay);
         Map<String, Integer> incomeMap = splitRecordService.sumMonthIncome(statDay);
         Map<String, Integer> crossIncomeMap = splitRecordService.sumMonthIncome(statDay, Boolean.TRUE);
-        Map<String, Integer> expendMap = splitRecordService.sumMonthExpend(statDay);
+        Map<String, Integer> expendMap = splitRecordService.sumMonthExpend(statDay, Boolean.TRUE);
         Map<String, Integer> refundMap = splitRecordService.sumMonthRefund(statDay);
         Map<String, Integer> rechargeCountMap = splitRecordService.countMonthRecharge(statDay);
         Map<String, Integer> refundCountMap = splitRecordService.countMonthRefund(statDay);