C11x5Job.cs 955 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Business.KJH;
  2. using Business.Util;
  3. using Cache;
  4. using Cache.Cache;
  5. using Common;
  6. using Quartz;
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. namespace JobService.Job
  13. {
  14. [DisallowConcurrentExecution]
  15. [PersistJobDataAfterExecution]
  16. class C11x5Job : IJob
  17. {
  18. public void Execute(IJobExecutionContext context)
  19. {
  20. try
  21. {
  22. var typelist = LottryDataHandle.GetLotteryCode();
  23. var Runlist = typelist.Where(w => w.lotteryCode.Contains("11x5")).ToList();
  24. jobServiceBLL bll = new Business.KJH.jobServiceBLL();
  25. var list = bll.GetLotteryListAsync(Runlist);
  26. LotteryCache.SetLotteryCache(list);
  27. }
  28. catch (Exception ee)
  29. {
  30. LogHelper.Error(typeof(QGCJob), ee.Message + ":QTJob");
  31. }
  32. }
  33. }
  34. }