AppGameItemTask.java 500 B

12345678910111213141516171819
  1. package com.game.business.task;
  2. import com.game.business.service.IAppGameItemService;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.scheduling.annotation.Scheduled;
  5. import org.springframework.stereotype.Component;
  6. @Component
  7. public class AppGameItemTask {
  8. @Autowired
  9. private IAppGameItemService appGameItemService;
  10. @Scheduled(cron = "0 0 0 * * ?")
  11. public void appGameItemTask(){
  12. appGameItemService.emptyLotteryCount();
  13. }
  14. }