Commit 716770cd by 泽锋 李

降低晚上的服务压力

parent 2f6cdf85
......@@ -43,6 +43,8 @@ namespace ShortagePush
{
try
{
if (DateTime.Now.Hour > 8)
{
System.Console.WriteLine($"开始刷新周转建议-采购单,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
new SkuAutoTurnServices().ResetPurchaseAdvise();
System.Console.WriteLine($"结束刷新周转建议-采购单,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
......@@ -50,7 +52,7 @@ namespace ShortagePush
System.Console.WriteLine($"开始刷新周转建议-by 调拨单,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
new SkuAutoTurnServices().ResetPurchaseAdviseByTransfer();
System.Console.WriteLine($"结束刷新周转建议- by调拨单,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
}
}
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