1、修改自动获取游客数据并保存的任务调度表达式,改为cron = "0 31 10-22/1 * * ? "
This commit is contained in:
parent
deaf4e2097
commit
f919ae9e51
|
@ -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 到晚上11:30,一小时一次
|
||||
@Scheduled(cron = "0 31 10-22/1 * * ? ")
|
||||
//10:31 到晚上10:31,每小时的31分执行一次
|
||||
public void passengerFlowSchedule(){
|
||||
//JSONObject map = new JSONObject();
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
|
|
Loading…
Reference in New Issue