From bb6029cce9de7f35947534f5623b1a9eda89da6e Mon Sep 17 00:00:00 2001 From: wuweida <2918581207@qq.com> Date: Tue, 7 Jun 2022 10:26:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=9C=B0=E6=8E=A5=E5=8F=A3=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hisense/monitormanage/service/BuildingRecordsService.java | 2 +- .../hisense/monitormanage/service/PassengerFlowService.java | 3 +-- src/main/resources/application-pro.properties | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) 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