From 55f1cdf5c466e817a2e4953e94f67f6802185602 Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Tue, 21 Apr 2026 15:05:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=87=8D=E5=A4=8D=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../czg/service/order/service/impl/FinanceStsServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/FinanceStsServiceImpl.java b/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/FinanceStsServiceImpl.java index 9302dd553..52b1822f2 100644 --- a/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/FinanceStsServiceImpl.java +++ b/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/FinanceStsServiceImpl.java @@ -132,7 +132,6 @@ public class FinanceStsServiceImpl implements FinanceStsService { private List> buildDayReportPrint(SaleSummaryCountParam param) { List> list = new ArrayList<>(); - Map dayReportMap = new HashMap<>(); if (param.getBeginDate() != null && param.getEndDate() != null) { // 计算相差天数 long days = java.time.temporal.ChronoUnit.DAYS.between(param.getBeginDate(), param.getEndDate()); @@ -140,6 +139,7 @@ public class FinanceStsServiceImpl implements FinanceStsService { .mapToObj(param.getBeginDate()::plusDays) .toList(); for (LocalDate localDate : dateList) { + Map dayReportMap = new HashMap<>(); DayReportPrintDTO dayReportPrintDTO = new DayReportPrintDTO(); FinanceStsQueryParam financeStsQueryParam = new FinanceStsQueryParam(); financeStsQueryParam.setQueryDate(localDate); @@ -218,13 +218,13 @@ public class FinanceStsServiceImpl implements FinanceStsService { private List> buildDaySettlePrint(SaleSummaryCountParam param) { List> map = new ArrayList<>(); if (param.getBeginDate() != null && param.getEndDate() != null) { - Map dayReportMap = new HashMap<>(); // 计算相差天数 long days = java.time.temporal.ChronoUnit.DAYS.between(param.getBeginDate(), param.getEndDate()); List dateList = LongStream.rangeClosed(0, days) .mapToObj(param.getBeginDate()::plusDays) .toList(); for (LocalDate localDate : dateList) { + Map dayReportMap = new HashMap<>(); DaySettlePrintDTO printDTO = new DaySettlePrintDTO(); FinanceStsQueryParam param1 = new FinanceStsQueryParam(); param1.setQueryDate(localDate);