Commit 016f536e by guanzhenshan

调整月销售利润服务的启动时间,修复没有启动的问题

parent 921475b3
......@@ -29,7 +29,7 @@ namespace Bailun.DC.MonthSaleProfit
{
var now = DateTime.Now;
if (now.Day == 1 && now.Hour == 0 && now.Minute == 45 && now.Second==3) //每个月的1日0点1分启动
if (now.Day == 1 && now.Hour == 1 && now.Minute == 45) //每个月的1日0点1分启动
{
Console.WriteLine("开始启动 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
var start = DateTime.Parse(now.AddMonths(-1).ToShortDateString());
......@@ -45,7 +45,7 @@ namespace Bailun.DC.MonthSaleProfit
Console.WriteLine("任务运行完成 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
}
else if(now.Day==5 && now.Hour == 0 && now.Minute == 45 && now.Second == 3)
else if(now.Day==5 && now.Hour == 1 && now.Minute == 45)
{
Console.WriteLine("开始启动新销售利润报表计算 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
var start = DateTime.Parse(DateTime.Parse(now.ToString("yyyy-MM")+"-01").AddMonths(-1).ToShortDateString());
......
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