|
@@ -39,10 +39,10 @@ public class StatJob {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 月统计,每月5日下午15:00启动,统计上月数据
|
|
|
|
|
|
|
+ * 月统计,每月1日下午15:00启动,统计上月数据
|
|
|
*/
|
|
*/
|
|
|
@Async("AsyncExecutor")
|
|
@Async("AsyncExecutor")
|
|
|
- @Scheduled(cron = "0 0 15 5 * ?")
|
|
|
|
|
|
|
+ @Scheduled(cron = "0 0 15 1 * ?")
|
|
|
public void generateMonthStat() {
|
|
public void generateMonthStat() {
|
|
|
log.info("执行站点月统计定时任务-开始");
|
|
log.info("执行站点月统计定时任务-开始");
|
|
|
var statMonth = LocalDate.now().minusMonths(1).format(DateTimeFormatter.ofPattern("yyyy-MM"));
|
|
var statMonth = LocalDate.now().minusMonths(1).format(DateTimeFormatter.ofPattern("yyyy-MM"));
|