This commit is contained in:
2025-09-28 11:58:47 +08:00
parent 56bf486adf
commit b3f84a4402
23 changed files with 885 additions and 6 deletions

View File

@@ -0,0 +1,20 @@
package com.accompany.scheduler.task.game;
import com.accompany.business.service.game.ChargeUserXService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import java.util.Date;
@Component
public class ChargeUserXTask {
@Autowired
private ChargeUserXService chargeUserXService;
@Scheduled(cron = "0 0 4 * * *")
public void statDayList() {
chargeUserXService.updateUserX(new Date());
}
}

View File

@@ -14,7 +14,7 @@ public class GameDayStatDataTask {
@Autowired
private GameDayStatDataService gameDayStatDataService;
@Scheduled(cron = "0 0 9 * * *")
@Scheduled(cron = "0 0 10 * * *")
public void statDayList() {
for (GameConstant.GameChannel gameChannel : GameConstant.GameChannel.values()) {
gameDayStatDataService.statDayList(gameChannel.name(), new Date());