Commit b8aee864 by 泽锋 李

fix

parent 34105f79
......@@ -70,7 +70,7 @@ namespace AutoGeneratePurchaseAdvise
if (now.Hour == 07 && now.Minute == 1)
{
Console.WriteLine($"开始 检查周转任务状态 任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
PurchaseAdviseServices.CheckTurnoveCount(DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")));
PurchaseAdviseServices.CheckTurnoveCount(DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")));
Console.WriteLine($"结束 检查周转任务状态 任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
}
......@@ -121,7 +121,7 @@ namespace AutoGeneratePurchaseAdvise
if (now.Hour == 14 && now.Minute == 30)
{
Console.WriteLine($"开始 检查周转任务状态 任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
PurchaseAdviseServices.CheckTurnoveCount(DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")));
PurchaseAdviseServices.CheckTurnoveCount(DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 12:00:00")));
Console.WriteLine($"结束 检查周转任务状态 任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
}
// 判断是不是指定的时间
......
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