Browse Source

高危用户

zyg 2 years ago
parent
commit
1b135895e9

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

@@ -28,7 +28,7 @@ public class JobScheduler {
      * 10min一次
      */
     @Async
-    @Scheduled(cron = "0 */10 * * * ?")
+    //@Scheduled(cron = "0 */10 * * * ?")
     public void syncBattery() {
         deviceService.syncBattery();
     }
@@ -38,7 +38,7 @@ public class JobScheduler {
      * 10min一次
      */
     @Async
-    @Scheduled(cron = "0 */2 * * * ?")
+    //@Scheduled(cron = "0 */2 * * * ?")
     public void syncAlarmMsg() {
         alarmMsgService.syncAlarmMsg();
     }
@@ -48,7 +48,7 @@ public class JobScheduler {
      * 2min一次
      */
     @Async
-    @Scheduled(cron = "0 */2 * * * ?")
+    //@Scheduled(cron = "0 */2 * * * ?")
     public void syncAlarmMsgWarnIng() {
         alarmMsgWarnService.syncAlarmMsg();
     }
@@ -58,7 +58,7 @@ public class JobScheduler {
      * 1小时一次
      */
     @Async
-    @Scheduled(cron = "0 0 */1 * * ?")
+    //@Scheduled(cron = "0 0 */1 * * ?")
     public void syncAlarmMsgStatus() {
         alarmMsgService.syncAlarmMsgStatus();
     }
@@ -68,7 +68,7 @@ public class JobScheduler {
      * 1小时一次
      */
     @Async
-    @Scheduled(cron = "0 0 */1 * * ?")
+    //@Scheduled(cron = "0 0 */1 * * ?")
     public void syncDuration() {
         deviceDurationService.syncDuration();
     }

+ 1 - 0
src/main/resources/mapper/AlarmMsgWarnMapper.xml

@@ -21,6 +21,7 @@
           AND t.fault_status = 0
           AND t.fault_level >= 4
           AND t.fault_time >= CURDATE()
+          AND t.fault_time < CURDATE()+1
         ORDER BY t.fault_level desc, t.id DESC limit 300
     </select>