diff --git a/smart-switch-service/src/main/java/com/ruoyi/task/reconciliationDate/ReconciliationDateTask.java b/smart-switch-service/src/main/java/com/ruoyi/task/reconciliationDate/ReconciliationDateTask.java index 1fbcc571..059c84f6 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/task/reconciliationDate/ReconciliationDateTask.java +++ b/smart-switch-service/src/main/java/com/ruoyi/task/reconciliationDate/ReconciliationDateTask.java @@ -26,13 +26,13 @@ public class ReconciliationDateTask { public void recordReconciliationDate() { // 获取昨日日期 LocalDate now = LocalDate.now(); - LocalDate startDay = now.minusMonths(1); + LocalDate startDay = now.minusDays(1); while (now.isAfter(startDay)) { // 获取昨日对账数据 ReconciliationDate po = dashboardService.selectReconciliationDateByDate(startDay); if (po == null) { - log.error("昨日对账数据不存在,{}", startDay); + log.error("{}对账数据不存在", startDay); return; }