1、修改自动获取游客数据并保存的任务调度表达式,改为cron = "0 31 10-22/1 * * ? "

This commit is contained in:
yitonglei 2022-05-11 11:36:33 +08:00
parent deaf4e2097
commit f919ae9e51
1 changed files with 3 additions and 2 deletions

View File

@ -54,6 +54,7 @@ public class PassengerFlowService {
* @param
* @return List
*/
//{"APIKEY":"202204141052331249fcc8-046","ParamJson":{"data":"{\"appId\":\"apitest\",\"mac\":\"f51093001255129b88deba6c5045ee26\",\"timeStamp\":\"20220510152759\",\"hourId\":\"2022051013\",\"timeId\":\"202205101300\"}"}}
public List<Map> passengerFlow(){
//JSONObject map = new JSONObject();
Map<String,Object> map = new HashMap<>();
@ -101,8 +102,8 @@ public class PassengerFlowService {
}
return list;
}
@Scheduled(cron = "0 30 11-23/1 * * ? ")
//11:30 到晚上1130一小时一次
@Scheduled(cron = "0 31 10-22/1 * * ? ")
//10:31 到晚上1031每小时的31分执行一次
public void passengerFlowSchedule(){
//JSONObject map = new JSONObject();
Map<String,Object> map = new HashMap<>();