Commit b07b191e by lizefeng

优化缺货数据导出

parent 4cb2fe5a
...@@ -181,7 +181,7 @@ namespace AutoTurnOver.Models.Report ...@@ -181,7 +181,7 @@ namespace AutoTurnOver.Models.Report
var temp_sry = buy_str.Replace("【", "").Replace("】", ""); var temp_sry = buy_str.Replace("【", "").Replace("】", "");
var buy_array = temp_sry.Split('|');// Trim() var buy_array = temp_sry.Split('|');// Trim()
var buy_array_length = buy_array.Count(); var buy_array_length = buy_array.Count();
if (buy_array_length < 3) continue; if (buy_array_length < 5) continue;
try try
{ {
datas.Add(new buy_ontheway_detail_dto datas.Add(new buy_ontheway_detail_dto
...@@ -195,9 +195,9 @@ namespace AutoTurnOver.Models.Report ...@@ -195,9 +195,9 @@ namespace AutoTurnOver.Models.Report
logistics_order_id = buy_array_length < 7 ? "" : buy_array[6].Trim(), logistics_order_id = buy_array_length < 7 ? "" : buy_array[6].Trim(),
}); });
} }
catch catch(Exception ex)
{ {
throw new Exception(temp_sry); throw new Exception(temp_sry +ex.Message );
} }
} }
......
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