|
@@ -60,14 +60,13 @@ public class ScheduleTask {
|
|
/**
|
|
/**
|
|
* 每天六点执行一次 获取免签地区在岛人数
|
|
* 每天六点执行一次 获取免签地区在岛人数
|
|
*/
|
|
*/
|
|
- @Scheduled(cron = "0 0 6 * * ?")
|
|
|
|
|
|
+ @Scheduled(cron = "0 40 5 * * ?")
|
|
public void scheduleOne() throws Exception {
|
|
public void scheduleOne() throws Exception {
|
|
log.info("免签-执行START时间-{}", DateUtil.date());
|
|
log.info("免签-执行START时间-{}", DateUtil.date());
|
|
HttpClient client = new SSLClient();
|
|
HttpClient client = new SSLClient();
|
|
HttpGet get = handleJgUrl(Constant.MQDQZDRS, null, 1);
|
|
HttpGet get = handleJgUrl(Constant.MQDQZDRS, null, 1);
|
|
HttpResponse res = client.execute(get);
|
|
HttpResponse res = client.execute(get);
|
|
if(res.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
|
|
if(res.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
|
|
- log.info(""+res.getStatusLine().getStatusCode());
|
|
|
|
HttpEntity entity = res.getEntity();
|
|
HttpEntity entity = res.getEntity();
|
|
String result = EntityUtils.toString(entity);
|
|
String result = EntityUtils.toString(entity);
|
|
JSONObject jsonObject = JSONObject.parseObject(result);
|
|
JSONObject jsonObject = JSONObject.parseObject(result);
|
|
@@ -88,11 +87,13 @@ public class ScheduleTask {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
log.info("免签-执行END时间-{}", DateUtil.date());
|
|
log.info("免签-执行END时间-{}", DateUtil.date());
|
|
}
|
|
}
|
|
|
|
|
|
@Scheduled(cron = "1 0 6 * * ?")
|
|
@Scheduled(cron = "1 0 6 * * ?")
|
|
public void scheduleTwo() throws Exception {
|
|
public void scheduleTwo() throws Exception {
|
|
|
|
+ log.info("执行START时间-{}", DateUtil.date());
|
|
HttpClient client = new SSLClient();
|
|
HttpClient client = new SSLClient();
|
|
HttpGet get = handleJgUrl(Constant.MQDQCRJZDRS, null, 1);
|
|
HttpGet get = handleJgUrl(Constant.MQDQCRJZDRS, null, 1);
|
|
HttpResponse res = client.execute(get);
|
|
HttpResponse res = client.execute(get);
|
|
@@ -118,9 +119,10 @@ public class ScheduleTask {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ log.info("执行END时间-{}", DateUtil.date());
|
|
}
|
|
}
|
|
|
|
|
|
- @Scheduled(cron = "2 0 6 * * ?")
|
|
|
|
|
|
+ @Scheduled(cron = "2 20 5 * * ?")
|
|
public void scheduleThree() throws Exception {
|
|
public void scheduleThree() throws Exception {
|
|
HttpClient client = new SSLClient();
|
|
HttpClient client = new SSLClient();
|
|
HttpGet get = handleJgUrl(Constant.MQWGRQZQK, null, 1);
|
|
HttpGet get = handleJgUrl(Constant.MQWGRQZQK, null, 1);
|
|
@@ -148,7 +150,7 @@ public class ScheduleTask {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- @Scheduled(cron = "3 0 6 * * ?")
|
|
|
|
|
|
+ @Scheduled(cron = "3 0 5 * * ?")
|
|
public void scheduleFour() throws Exception {
|
|
public void scheduleFour() throws Exception {
|
|
HttpClient client = new SSLClient();
|
|
HttpClient client = new SSLClient();
|
|
HttpGet get = handleJgUrl(Constant.MQWGRYJ, null, 1);
|
|
HttpGet get = handleJgUrl(Constant.MQWGRYJ, null, 1);
|
|
@@ -177,7 +179,7 @@ public class ScheduleTask {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- @Scheduled(cron = "4 0 6 * * ?")
|
|
|
|
|
|
+ @Scheduled(cron = "4 20 4 * * ?")
|
|
public void scheduleFive() throws Exception {
|
|
public void scheduleFive() throws Exception {
|
|
HttpClient client = new SSLClient();
|
|
HttpClient client = new SSLClient();
|
|
HttpGet get = handleJgUrl(Constant.MQWGRZDJZQK, null, 1);
|
|
HttpGet get = handleJgUrl(Constant.MQWGRZDJZQK, null, 1);
|
|
@@ -206,7 +208,7 @@ public class ScheduleTask {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- @Scheduled(cron = "6 0 6 * * ?")
|
|
|
|
|
|
+ @Scheduled(cron = "6 10 3 * * ?")
|
|
public void scheduleSix() throws Exception {
|
|
public void scheduleSix() throws Exception {
|
|
HttpClient client = new SSLClient();
|
|
HttpClient client = new SSLClient();
|
|
HttpGet get = handleJgUrl(Constant.MQWGRYJSJ, null, 1);
|
|
HttpGet get = handleJgUrl(Constant.MQWGRYJSJ, null, 1);
|