ComplianceServer/oldcode/CRMServices/CRMJobs/HGRecordDownloadJob.cs

35 lines
810 B
C#

using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WX.CRM.CRMServices.PkgSms;
namespace WX.CRM.CRMServices.CRMJobs
{
public class HGRecordDownloadJob:IJob
{
static bool isRuning = false;
public void Execute(JobExecutionContext context)
{
if (isRuning)
return;
isRuning = true;
try
{
new HGRecordDownload().HGSetRecord();
}
catch (Exception e)//获取远程录音数据失败
{
WX.CRM.Common.LogHelper.Error("合规工单录音下载: " + e);
}
finally
{
isRuning = false;
}
}
}
}