diff --git a/src/main/java/com/hisense/monitormanage/service/BuildingRecordsService.java b/src/main/java/com/hisense/monitormanage/service/BuildingRecordsService.java index a62c4a7..02e05b6 100644 --- a/src/main/java/com/hisense/monitormanage/service/BuildingRecordsService.java +++ b/src/main/java/com/hisense/monitormanage/service/BuildingRecordsService.java @@ -63,7 +63,7 @@ public class BuildingRecordsService { return maps; } - @Scheduled(cron = "0 0 7/1 * * ?") + @Scheduled(cron = "0 0 8/1 * * ?") public boolean getAndSaveRecords(){ List maps = this.getRecords(); boolean result = false; diff --git a/src/main/java/com/hisense/monitormanage/service/PassengerFlowService.java b/src/main/java/com/hisense/monitormanage/service/PassengerFlowService.java index c6ff376..e8422cc 100644 --- a/src/main/java/com/hisense/monitormanage/service/PassengerFlowService.java +++ b/src/main/java/com/hisense/monitormanage/service/PassengerFlowService.java @@ -48,7 +48,7 @@ public class PassengerFlowService { @Value("7eb78b134e0310904d46039ccea20c32") private String appSecret; - @Value("${scheduled.enable:true}") + @Value("${scheduled.enable}") private Boolean enable; /** @@ -229,7 +229,6 @@ public class PassengerFlowService { return result; } - //当前时间减去固定的分钟数,然后分钟取30 private String[] minusMinutesStr(LocalDateTime datetime,long minutes){ String t1,t2;//t1 yyyyMMddHHmm t2 yyyyMMddHH diff --git a/src/main/resources/application-pro.properties b/src/main/resources/application-pro.properties index 5e9b176..ba5071e 100644 --- a/src/main/resources/application-pro.properties +++ b/src/main/resources/application-pro.properties @@ -19,5 +19,6 @@ hwx.file.work-path=/data/services/monitor/ #用于生成图片地址 hwx.file.pic-host=http://15.72.183.90:7009 spring.resources.static-locations=classpath:/static,classpath:/public,file:${hwx.file.work-path} - +#人流调度 +scheduled.enable=true