整体修改一体化事业部BI汇总sql逻辑-4

This commit is contained in:
yujh_java 2025-09-17 21:42:35 +08:00
parent 336460e689
commit 3018b00b18

View File

@ -589,7 +589,7 @@ public class SaleDataSummaryServiceImpl implements DataSummaryService {
Calendar startCal = Calendar.getInstance();
startCal.setTime(dateRange.getStartDate());
startCal.set(Calendar.DAY_OF_MONTH, 1); // 设置为月份的第一天
String startDate = DATE_FORMAT.format(dateRange.getStartDate());
Calendar endCal = Calendar.getInstance();
endCal.setTime(dateRange.getEndDate());
endCal.set(Calendar.DAY_OF_MONTH, endCal.getActualMaximum(Calendar.DAY_OF_MONTH)); // 设置为月份的最后一天
@ -616,7 +616,7 @@ public class SaleDataSummaryServiceImpl implements DataSummaryService {
// calculateAndSaveReceivableYear(year, month, yearMonth, bkgs);
// 5. 营业收入年度汇总
//calculateAndSaveRevenueYear(year, month, yearMonth, bkgs);
calculateAndSaveRevenueYear(startDate,year, month, yearMonth, bkgs);
// 移动到下个月
monthCal.add(Calendar.MONTH, 1);