public class DTCrossDayJob:IJob
{
public async Task Execute(IJobExecutionContext context)
{
try
{
string res= await Task.Run<string>(() => { return SplitDT(); });
}
catch (Exception ex)
{
Log.Error(ex.ToString());
}
}
private string SplitDT()
{
string rsp = "OK";
try
{
DataTable dt = DTFiller.QueryCrossDay();
if (dt != null)
{
for(int i = 0; i < dt.Rows.Count; i++)
{
}
}
}
catch(Exception ex)
{
Log.Error(ex.ToString());
}
return rsp;
}
}