GroupTeamCurrencyJob.cs 901 B

123456789101112131415161718192021222324252627282930313233
  1. using OASystem.API.OAMethodLib.Quartz.Business;
  2. using Quartz;
  3. namespace OASystem.API.OAMethodLib.Quartz.Jobs
  4. {
  5. /// <summary>
  6. /// 团组币种 定时任务
  7. /// </summary>
  8. public class GroupTeamCurrencyJob : IJob
  9. {
  10. private readonly ILogger<GroupTeamCurrencyJob> _logger;
  11. /// <summary>
  12. /// 团组币种
  13. /// 定时任务
  14. /// </summary>
  15. /// <param name="logger"></param>
  16. public GroupTeamCurrencyJob(ILogger<GroupTeamCurrencyJob> logger)
  17. {
  18. _logger = logger;
  19. }
  20. public Task Execute(IJobExecutionContext context)
  21. {
  22. _logger.LogInformation("调用团组币种接口 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
  23. //在此处编写任务业务代码
  24. TeamCurrency.PostTeamCurrencyUpdate();
  25. return Task.CompletedTask;
  26. }
  27. }
  28. }