Commit d0c11750 by 泽锋 李

fix

parent afb9e3ff
...@@ -33,6 +33,7 @@ namespace ResetOutofstock ...@@ -33,6 +33,7 @@ namespace ResetOutofstock
{ {
Console.WriteLine($"开始 同步调拨 采购临时数据 ,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}"); Console.WriteLine($"开始 同步调拨 采购临时数据 ,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
dc_base_trans_temp_schedule_dao.SynchroTransTempScheduleData(); dc_base_trans_temp_schedule_dao.SynchroTransTempScheduleData();
dc_base_trans_temp_schedule_dao.SynchroTransTempScheduleData(true);
Console.WriteLine($"结束 同步调拨 采购临时数据 ,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}"); Console.WriteLine($"结束 同步调拨 采购临时数据 ,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
} }
catch (Exception ex) catch (Exception ex)
...@@ -45,25 +46,6 @@ namespace ResetOutofstock ...@@ -45,25 +46,6 @@ namespace ResetOutofstock
}); });
Task.Factory.StartNew(() =>
{
while (true)
{
try
{
Console.WriteLine($"开始 同步调拨 采购临时数据(全量) ,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
dc_base_trans_temp_schedule_dao.SynchroTransTempScheduleData(true);
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);
}
});
Task.Factory.StartNew(() => Task.Factory.StartNew(() =>
{ {
......
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