后台定时任务统计更改

This commit is contained in:
tianfeng 2026-03-13 16:06:50 +08:00
parent 31b72609da
commit 072ae18e42

View File

@ -35,7 +35,7 @@ public class StatisticsTask {
/** /**
* 全平台总新增+用户新增情况统计早上8点执行. * 全平台总新增+用户新增情况统计早上8点执行.
*/ */
@Scheduled(cron = "0 0 8 * * ?", zone = "Asia/Shanghai") @Scheduled(cron = "0 0 16 * * ?", zone = "Asia/Shanghai")
@TaskCacheLock(key = "USER_ADDED_COUNT", expireSecond = 60 * 60) @TaskCacheLock(key = "USER_ADDED_COUNT", expireSecond = 60 * 60)
public void userAddedCount() { public void userAddedCount() {
log.warn("[userAddedCount] 开始执行统计:系统时间:{}", log.warn("[userAddedCount] 开始执行统计:系统时间:{}",