Commit 2d0561a5 by 泽锋 李

fix

parent 73059a2d
......@@ -49,18 +49,22 @@ namespace ResetOutofstock
Task.Factory.StartNew(() =>
{
try
{
Console.WriteLine($"开始 同步调拨 采购临时数据 ,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
dc_base_trans_temp_schedule_dao.SynchroTransTempScheduleData();
Console.WriteLine($"结束 同步调拨 采购临时数据 ,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
}
catch (Exception ex)
while (true)
{
Console.WriteLine(ex.Message);
Console.WriteLine(ex.StackTrace);
try
{
Console.WriteLine($"开始 同步调拨 采购临时数据 ,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
dc_base_trans_temp_schedule_dao.SynchroTransTempScheduleData();
Console.WriteLine($"结束 同步调拨 采购临时数据 ,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
Console.WriteLine(ex.StackTrace);
}
Thread.Sleep(10 * 60 * 1000);
}
Thread.Sleep(10 * 60 * 1000);
});
......
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