Commit 6f134a40 by lizefeng

test

parent 3c359216
......@@ -18,13 +18,13 @@ namespace AutoGeneratePurchaseAdvise
return Task.CompletedTask;
}
private void DoWork(object state)
private void DoWork(object state)
{
try
{
var now = DateTime.Now;
// 判断是不是指定的时间
if (now.Hour == 14 && now.Minute == 58)
if (now.Hour == 15 && now.Minute == 05)
{
Console.WriteLine($"开始采购平均值统计任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
PurchaseAdviseServices.Generate();
......
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