Commit 65a9eae8 by guanzhenshan

每日发生额增加重跑机制

parent cbf90411
...@@ -35,6 +35,16 @@ namespace Bailun.DC.HappenAmount ...@@ -35,6 +35,16 @@ namespace Bailun.DC.HappenAmount
Console.WriteLine("任务运行完成 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); Console.WriteLine("任务运行完成 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
} }
else if (now.Hour / 12 == 0 && now.Minute == 1)
{
Console.WriteLine("重跑数据 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
var start = now.AddMonths(-1);
while (start.AddDays(1) < DateTime.Now)
{
new Services().Init(start, start.AddDays(1));
start = start.AddDays(1);
}
}
} }
catch (Exception ex) catch (Exception ex)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment