Commit fb550145 by 泽锋 李

调整任务刷新的频率

parent c153ada1
......@@ -58,9 +58,11 @@ namespace ResetOutofstock
dc_auto_pick_up_goods_order_dao.GenerateOrder(DateTime.Now.AddDays(-1), DateTime.Now);
Console.WriteLine($"结束 刷新jit安全库存,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
}
if (now.Hour==8 && now.Minute == 1)
if (now.Hour==8 && now.Minute == 10)
{
Console.WriteLine($"开始 刷新jit安全库存,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
report.ResetFullStock();
report.ResetStockRecord();
report.ResetInventory();
Console.WriteLine($"结束 刷新jit安全库存,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
}
......@@ -71,6 +73,7 @@ namespace ResetOutofstock
Console.WriteLine($"结束 刷新最近7天的oms数据,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
}
}
public override void Dispose()
......
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