Commit d0c11750 by 泽锋 李

fix

parent afb9e3ff
......@@ -33,27 +33,8 @@ namespace ResetOutofstock
{
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);
}
});
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")}");
Console.WriteLine($"结束 同步调拨 采购临时数据 ,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
}
catch (Exception ex)
{
......@@ -64,6 +45,7 @@ namespace ResetOutofstock
}
});
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