From bf706895204ada40082e4c0c8165b51d2b4ff97c Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期四, 09 四月 2026 09:15:40 +0800
Subject: [PATCH] 删除-定时任务循环未执行完放弃当次任务

---
 src/main/java/com/zy/asrs/task/AutoReportingScheduler.java |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/zy/asrs/task/AutoReportingScheduler.java b/src/main/java/com/zy/asrs/task/AutoReportingScheduler.java
index b122e8a..e3fa166 100644
--- a/src/main/java/com/zy/asrs/task/AutoReportingScheduler.java
+++ b/src/main/java/com/zy/asrs/task/AutoReportingScheduler.java
@@ -8,8 +8,6 @@
 import com.zy.system.entity.Config;
 import com.zy.system.service.ConfigService;
 import lombok.extern.slf4j.Slf4j;
-import org.springframework.scheduling.annotation.Async;
-import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Component;
 
 import javax.annotation.Resource;
@@ -34,8 +32,8 @@
     private ConfigService configService;
 
     //    @Scheduled(cron = "0 0/10 * * * ? ")
-    @Scheduled(cron = "0/10 * * * * ? ")
-    @Async("orderThreadPool")
+//    @Scheduled(cron = "0/10 * * * * ? ")
+//    @Async("orderThreadPool")
     void execute() {
         Config config = configService.selectConfigByCode("AutoReportU8");
         if (config != null && config.getStatus() == 1) {

--
Gitblit v1.9.1