فهرست منبع

添加Spring启动事件

lyr 8 سال پیش
والد
کامیت
83c5ed32c7
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      patient-co-wlyy/src/main/java/com/yihu/wlyy/event/ApplicationEvent.java

+ 2 - 1
patient-co-wlyy/src/main/java/com/yihu/wlyy/event/ApplicationEvent.java

@ -22,8 +22,9 @@ public class ApplicationEvent implements ApplicationListener<ContextRefreshedEve
    @Override
    public void onApplicationEvent(ContextRefreshedEvent ContextRefreshedEvent) {
        try {
            String trigger = SystemConf.getInstance().getSystemProperties().getProperty("sign_end_job_trigger");
            // 启动签约到期处理JOB
            if (!quartzHelper.isExistJob("sign_end_job")) {
                String trigger = SystemConf.getInstance().getSystemProperties().getProperty("sign_end_job_trigger");
                quartzHelper.addJob(SignEndJob.class, trigger, "sign_end_job", new HashMap<String, Object>());
                System.out.println("sign end job start success");
            } else {