From a3f0b0d521d07c3a735f82388537521ca2c2e3ed Mon Sep 17 00:00:00 2001
From: 1 <1>
Date: 星期六, 07 三月 2026 13:22:01 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/task/ExceptionNoticeScheduler.java |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/asrs/task/ExceptionNoticeScheduler.java b/src/main/java/com/zy/asrs/task/ExceptionNoticeScheduler.java
new file mode 100644
index 0000000..238250b
--- /dev/null
+++ b/src/main/java/com/zy/asrs/task/ExceptionNoticeScheduler.java
@@ -0,0 +1,21 @@
+package com.zy.asrs.task;
+
+import com.zy.asrs.task.core.ReturnT;
+import com.zy.asrs.task.handler.ExceptionNoticeHandler;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.stereotype.Component;
+
+import static org.reflections.Reflections.log;
+@Component
+public class ExceptionNoticeScheduler {
+    @Autowired
+    private ExceptionNoticeHandler exceptionNoticeHandler;
+    @Scheduled(cron = "0/30 * * * * ? ")
+    private void execute(){
+        ReturnT<String> returnT = exceptionNoticeHandler.start();
+        if (!returnT.isSuccess()) {
+            log.error(returnT.getMsg());
+        }
+    }
+}

--
Gitblit v1.9.1