Commit f71d4f09 by lizefeng

11月28号的中午1点,临时改成推全量的服装缺货

parent 8e8864f8
...@@ -81,6 +81,14 @@ namespace AutoGeneratePurchaseAdvise ...@@ -81,6 +81,14 @@ namespace AutoGeneratePurchaseAdvise
// 要上班才推 // 要上班才推
if (ApiServices.GetSchedulings()) if (ApiServices.GetSchedulings())
{ {
if(now.Year==2019 && now.Month==11 && now.Day == 28)
{
Console.WriteLine($"开始推送 服装采购建议任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
PurchaseAdviseServices.AutoPushBuySys(2);
Console.WriteLine($"结束推送 服装采购建议任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
}
else
{
Console.WriteLine($"开始推送 服装采购建议任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}"); Console.WriteLine($"开始推送 服装采购建议任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
PurchaseAdviseServices.AutoPushBuySys(5); PurchaseAdviseServices.AutoPushBuySys(5);
Console.WriteLine($"结束推送 服装采购建议任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}"); Console.WriteLine($"结束推送 服装采购建议任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
...@@ -88,6 +96,8 @@ namespace AutoGeneratePurchaseAdvise ...@@ -88,6 +96,8 @@ namespace AutoGeneratePurchaseAdvise
} }
}
// 判断是不是指定的时间 // 判断是不是指定的时间
if (now.Hour == 9 && now.Minute == 1) if (now.Hour == 9 && now.Minute == 1)
......
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