Commit 716770cd by 泽锋 李

降低晚上的服务压力

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