1234567891011121314151617181920212223242526272829303132333435363738 |
- using Business.KJH;
- using Business.Util;
- using Cache;
- using Common;
- using Quartz;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace JobService.Job
- {
- [DisallowConcurrentExecution]
- [PersistJobDataAfterExecution]
- public class QGCJob : IJob
- {
- public void Execute(IJobExecutionContext context)
- {
- try
- {
- var typelist = LottryDataHandle.GetLotteryCode();
- var Runlist = typelist.Where(w => w.lotteryCode.Contains("QG")).ToList();
- jobServiceBLL bll = new Business.KJH.jobServiceBLL();
- var list = bll.GetLotteryListAsync(Runlist);
- AppCtrl.GetObj().GetLotteryCache().SetLotteryCache(list);
- }
- catch (Exception ee)
- {
- LogHelper.Error(typeof(QGCJob), ee.Message + ":Execute");
-
- }
-
- }
- }
- }
|