|
|
|
|
@ -80,7 +80,7 @@ public class Job {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 每日04:00更新基础数据
|
|
|
|
|
@Scheduled(cron = "0 0 4 * * ?") |
|
|
|
|
// @Scheduled(cron = "0 0 4 * * ?")
|
|
|
|
|
public void updateBaseData() { |
|
|
|
|
List<Date> happenTime = new ArrayList<>(); |
|
|
|
|
Date start = Date.from(LocalDateTime.now().minusDays(1).withHour(0).withMinute(0).withSecond(0).withNano(0).atZone(ZoneId.systemDefault()).toInstant()); |
|
|
|
|
@ -91,7 +91,7 @@ public class Job {
|
|
|
|
|
businessPoliceService.generate(happenTime); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Scheduled(cron = "0 0 5 * * ?") |
|
|
|
|
// @Scheduled(cron = "0 0 5 * * ?")
|
|
|
|
|
public void executeModel() { |
|
|
|
|
modelClueService.generate(7); |
|
|
|
|
} |
|
|
|
|
|