Commit 8839bdb6 by lizefeng

广州03 的服装产品,每天中午1点推送一个采购单

parent 6b2346b2
...@@ -55,6 +55,18 @@ namespace AutoGeneratePurchaseAdvise ...@@ -55,6 +55,18 @@ namespace AutoGeneratePurchaseAdvise
} }
if (now.Hour == 13 && now.Minute == 01)
{
// 要上班才推
if (ApiServices.GetSchedulings())
{
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")}");
}
}
// 判断是不是指定的时间 // 判断是不是指定的时间
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