Commit e5133238 by 泽锋 李

fix 缺货订单计算异常

parent dc9a2d52
...@@ -1693,8 +1693,16 @@ Truncate table dc_base_oms_sku_outofstock_temp; ...@@ -1693,8 +1693,16 @@ Truncate table dc_base_oms_sku_outofstock_temp;
foreach (var item in datas) foreach (var item in datas)
{ {
try
{
_connection.Insert(item); _connection.Insert(item);
} }
catch (Exception ex)
{
Console.WriteLine("加载缺货订单异常"+ex.Message);
}
}
_connection.Execute(@" _connection.Execute(@"
alter table dc_base_oms_sku_outofstock rename dc_base_oms_sku_outofstockTemp; alter table dc_base_oms_sku_outofstock rename dc_base_oms_sku_outofstockTemp;
......
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