From 53ce8de426561e7a43847afda23b5e24e6f76c4e Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期一, 19 一月 2026 17:29:55 +0800
Subject: [PATCH] 2026.1.19 1. 新增可配置的台账提交期限 2. 新增可配置的自巡查承诺

---
 src/main/kotlin/cn/flightfeather/supervision/scheduler/ScheduleService.kt |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/scheduler/ScheduleService.kt b/src/main/kotlin/cn/flightfeather/supervision/scheduler/ScheduleService.kt
index 5fe3032..b28304a 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/scheduler/ScheduleService.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/scheduler/ScheduleService.kt
@@ -33,14 +33,17 @@
     @Async
     @Scheduled(cron = "0 0 * * * *")
     fun eachHour() {
+        if (mode != "pro") return
+
         logger.info("=====>>>>>姣忓皬鏃朵换鍔℃墽琛� {}", System.currentTimeMillis())
         taskJinAnHourlyDustData.doTask(LocalDateTime.now())
         logger.info("=====>>>>>姣忓皬鏃朵换鍔$粨鏉� {}", System.currentTimeMillis())
     }
 
-//    @Async
+    //    @Async
 //    @Scheduled(cron = "0 0 0 * * *")
     fun eachDay() {
+        if (mode != "pro") return
         logger.info("=====>>>>>姣忔棩浠诲姟鎵ц {}", System.currentTimeMillis())
 
         logger.info("=====>>>>>姣忔棩浠诲姟缁撴潫 {}", System.currentTimeMillis())
@@ -49,6 +52,7 @@
     @Async
     @Scheduled(cron = "0 0 0 * * SUN")
     fun eachSunday() {
+        if (mode != "pro") return
         logger.info("=====>>>>>姣忓懆鏃ラ浂鐐逛换鍔℃墽琛� {}", System.currentTimeMillis())
         mTaskJinAnHourlyDustData.handle()
         logger.info("=====>>>>>姣忓懆鏃ラ浂鐐逛换鍔$粨鏉� {}", System.currentTimeMillis())
@@ -57,6 +61,7 @@
     @Async
     @Scheduled(cron = "0 0 3 1 * *")
     fun eachMonth() {
+        if (mode != "pro") return
         logger.info("=====>>>>>姣忔湀鍒濅换鍔℃墽琛� {}", System.currentTimeMillis())
         // 鎵ц涓婁釜鏈堢殑闈欏畨宸ュ湴鎵皹鏁版嵁琛ュ叏浠诲姟
         val now = LocalDate.now().minusMonths(1)

--
Gitblit v1.9.3