From 25ef09df68cd79b9c75bb88ee8ee039b58ce5690 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期日, 01 九月 2024 22:20:06 +0800
Subject: [PATCH] update

---
 jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/MySpringEventListener.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/MySpringEventListener.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/MySpringEventListener.java
index a97f08e..147e4b9 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/MySpringEventListener.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/MySpringEventListener.java
@@ -1,6 +1,7 @@
 package cn.lihu.jh.module.ecg.config;
 
 import cn.lihu.jh.module.ecg.Utils;
+import cn.lihu.jh.module.ecg.service.config.EcgConfigService;
 import cn.lihu.jh.module.ecg.service.queue.QueueService;
 import cn.lihu.jh.module.infra.api.config.ConfigApi;
 import org.springframework.boot.context.event.ApplicationStartedEvent;
@@ -21,7 +22,10 @@
     private ConfigApi configApi;
 
     @Resource
-    private QueueService queueService;
+    private EcgConfigService ecgConfigService;
+
+    @Resource
+    QueueService queueService;
 
     @EventListener
     public void onApplicationEvent(ApplicationStartedEvent event) {
@@ -44,5 +48,7 @@
         } else {
             queueService.startBiz();
         }
+
+        ecgConfigService.resetScheduler();
     }
 }

--
Gitblit v1.9.3