|
@@ -47,7 +47,7 @@ public class EnvTimer {
|
|
|
@Autowired
|
|
|
private EnvHourRepo EnvHourRepo;
|
|
|
|
|
|
- @Scheduled(cron = "0 6 * * * ? ")
|
|
|
+ @Scheduled(cron = "0 0 6 * * ? ")
|
|
|
private void getDay() throws JsonProcessingException {
|
|
|
RestTemplate restTemplate = new RestTemplate();
|
|
|
String envUrl = "https://dnqyt.envchina.com/api/public/station-data";
|
|
@@ -114,7 +114,7 @@ public class EnvTimer {
|
|
|
|
|
|
}
|
|
|
|
|
|
- @Scheduled(cron = "0 0 0/1 * * ? ")
|
|
|
+ @Scheduled(cron = "0 10 0/1 * * ? ")
|
|
|
private void getHour() throws JsonProcessingException {
|
|
|
RestTemplate restTemplate = new RestTemplate();
|
|
|
String envUrl = "https://dnqyt.envchina.com/api/public/station-data";
|