|
@@ -28,7 +28,7 @@ public class JobScheduler {
|
|
|
* 10min一次
|
|
|
*/
|
|
|
@Async
|
|
|
- //@Scheduled(cron = "0 */10 * * * ?")
|
|
|
+ @Scheduled(cron = "0 */10 * * * ?")
|
|
|
public void syncBattery() {
|
|
|
deviceService.syncBattery();
|
|
|
}
|
|
@@ -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();
|
|
|
}
|