master
james.zhao 6 years ago
parent 923fea8b64
commit bab6df82c3

@ -25,11 +25,11 @@ public class DailyReportGenerationTask {
@Resource
private SynchronizedScheduler synchronizedScheduler;
@Scheduled(cron = "30 55 11 * * ?")
@Scheduled(cron = "0 0 10 * * ?")
public void dailyReportAutoGenerateReport() {
synchronizedScheduler.executeProcess("manage_task:dailyReportAutoGenerateReport", 120_000, () -> {
Date yesterday = DateUtils.addDays(new Date(), -1);
dailyReport.generateReport("2019-03-19", false);
dailyReport.generateReport(DateFormatUtils.format(yesterday, "yyyy-MM-dd"), true);
});
}
}

Loading…
Cancel
Save