Browse Source

定时任务3

alan 1 year ago
parent
commit
9319fe8215
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/main/java/com/zhili/dashboard/scheduler/JobScheduler.java

+ 1 - 2
src/main/java/com/zhili/dashboard/scheduler/JobScheduler.java

@@ -30,8 +30,7 @@ public class JobScheduler {
      * 同步电池信息
      * 10min一次
      */
-//    @Scheduled(cron = "0 0 0 * * ?")
-    @Scheduled(cron = "*/30 * * * * ?")
+    @Scheduled(cron = "0 0 0 * * ?")
     public void updateAlarmMsg() {
         log.info("更新一次数据");
         alarmMsgService.updateAlarmMsg();