x用户
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
@@ -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());
|
||||
|
Reference in New Issue
Block a user