eight
2024-09-01 25ef09df68cd79b9c75bb88ee8ee039b58ce5690
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) {
@@ -45,6 +49,6 @@
            queueService.startBiz();
        }
        queueService.resetScheduler();
        ecgConfigService.resetScheduler();
    }
}