Sfoglia il codice sorgente

feat: 月统计定时任务由每月5日调整为每月1日执行

skyline 3 settimane fa
parent
commit
1234bc881b

+ 2 - 2
car-wash-admin/src/main/java/com/kym/admin/jobs/StatJob.java

@@ -39,10 +39,10 @@ public class StatJob {
     }
 
     /**
-     * 月统计,每月5日下午15:00启动,统计上月数据
+     * 月统计,每月1日下午15:00启动,统计上月数据
      */
     @Async("AsyncExecutor")
-    @Scheduled(cron = "0 0 15 5 * ?")
+    @Scheduled(cron = "0 0 15 1 * ?")
     public void generateMonthStat() {
         log.info("执行站点月统计定时任务-开始");
         var statMonth = LocalDate.now().minusMonths(1).format(DateTimeFormatter.ofPattern("yyyy-MM"));