49 lines
1.1 KiB
C#
49 lines
1.1 KiB
C#
using Quartz;
|
|
using System;
|
|
using System.Text;
|
|
using WX.CRM.Common;
|
|
|
|
namespace CRM.Core.CoreService.Order
|
|
{
|
|
public class LoadPerformanceDay
|
|
{
|
|
public void Exe()
|
|
{
|
|
try
|
|
{
|
|
LogHelper.Info("加载结算数据开始");
|
|
var url = "http://qm.dn8188.com:8099/Performance/List";
|
|
Utility.GetData(url, string.Empty, Encoding.UTF8);
|
|
LogHelper.Info("加载结算数据结束");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogHelper.Error(ex);
|
|
}
|
|
}
|
|
}
|
|
|
|
public class LoadPerformanceDayJob : IJob
|
|
{
|
|
static bool runnding = false;
|
|
public void Execute(JobExecutionContext context)
|
|
{
|
|
if (runnding)
|
|
return;
|
|
runnding = true;
|
|
try
|
|
{
|
|
new LoadPerformanceDay().Exe();
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
LogHelper.Error(e);
|
|
}
|
|
finally
|
|
{
|
|
runnding = false;
|
|
}
|
|
}
|
|
}
|
|
}
|