修改定时执行时间

This commit is contained in:
2025-07-25 10:50:36 +08:00
parent 727c9bacfa
commit 587c9de5b2

View File

@@ -32,7 +32,7 @@ public class ScenicStatsTask {
private AppStatisticsService statisticsService;
@Autowired
private ScenicMapper scenicMapper;
@Scheduled(cron = "0 10 0 * * *")
@Scheduled(cron = "0 1 0 * * *")
public void countDeviceStats() {
Date yesterdayStart = DateUtil.beginOfDay(DateUtil.yesterday());
Date yesterdayEnd = DateUtil.endOfDay(yesterdayStart);