This commit is contained in:
磷叶 2025-01-25 18:04:15 +08:00
parent e897418fa2
commit c6b492bbc5

View File

@ -26,13 +26,13 @@ public class ReconciliationDateTask {
public void recordReconciliationDate() { public void recordReconciliationDate() {
// 获取昨日日期 // 获取昨日日期
LocalDate now = LocalDate.now(); LocalDate now = LocalDate.now();
LocalDate startDay = now.minusMonths(1); LocalDate startDay = now.minusDays(1);
while (now.isAfter(startDay)) { while (now.isAfter(startDay)) {
// 获取昨日对账数据 // 获取昨日对账数据
ReconciliationDate po = dashboardService.selectReconciliationDateByDate(startDay); ReconciliationDate po = dashboardService.selectReconciliationDateByDate(startDay);
if (po == null) { if (po == null) {
log.error("昨日对账数据不存在,{}", startDay); log.error("{}对账数据不存在", startDay);
return; return;
} }