Commit cbf90411 by guanzhenshan

现金流量表增加重跑机制

parent 71fdd3c5
...@@ -40,9 +40,20 @@ namespace Bailun.DC.DailyPayAndIncoming ...@@ -40,9 +40,20 @@ namespace Bailun.DC.DailyPayAndIncoming
Init(start, start.AddDays(1)); Init(start, start.AddDays(1));
SaveMoneyFlowCount(start, start.AddDays(1)); SaveMoneyFlowCount(start, start.AddDays(1));
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 / 8 == 0 && now.Minute == 1)
{
var start = DateTime.Parse(now.AddMonths(-1).ToShortDateString());
while (start.AddDays(1) < DateTime.Now)
{
Console.WriteLine(start);
Init(start, start.AddDays(1));
SaveMoneyFlowCount(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