eight
2024-09-04 680d7e06f93253f28edf9a9326e880e07fd01782
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();
    }
}