Commit d456c63a by zhoujinhui

服装下午3点推送一次

parent 16612fd3
......@@ -155,7 +155,17 @@ namespace AutoGeneratePurchaseAdvise
}
if (now.Hour == 15 && now.Minute == 03)
{
// 要上班才推
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 == 7 && now.Minute == 29)
//{
......
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