工地接口优化

This commit is contained in:
wuweida 2022-06-07 10:26:06 +08:00
parent d7f209964f
commit bb6029cce9
3 changed files with 4 additions and 4 deletions

View File

@ -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<Map> maps = this.getRecords();
boolean result = false;

View File

@ -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

View File

@ -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