Browse Source

剔除xxl-job的定时任务的调度,改为本地

zhangqiankun 2 years ago
parent
commit
54334be95e

+ 2 - 2
src/main/java/com/persagy/calendar/schedule/WorkDateCalendarSchedule.java

@@ -34,8 +34,8 @@ public class WorkDateCalendarSchedule {
     @Autowired
     private IWorkCalendarService workCalendarService;
 
-    //@Scheduled(cron = "0 30 0 * * ?")
-    @Scheduled(cron = "0/30 * * * * ?")
+    @Scheduled(cron = "0 30 0 * * ?")
+    //@Scheduled(cron = "0/30 * * * * ?")
     public void updateAlarmIsolationInfo() throws Exception {
         // 获取所有的集团和项目信息
         List<WorkCalendar> workCalendars = this.workCalendarService.lambdaQuery().eq(WorkCalendar::getDelFlag, WorkCalendarConstant.WORK_CALENDAR_DEL_FLAG_NOR)