Commit 9cfb8f13 by 肖小磊

获取POS上传的文件分隔符多一个空格问题修复

parent 87bf3499
...@@ -171,7 +171,7 @@ namespace FTM.Service ...@@ -171,7 +171,7 @@ namespace FTM.Service
var result = new List<Pos>(); var result = new List<Pos>();
foreach (var line in lines) foreach (var line in lines)
{ {
var array = line.Split(", ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); var array = line.Split(",".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
if (array.Length > 1) if (array.Length > 1)
{ {
result.Add(new Pos { StoreID = array[0], PosID = array[1] }); result.Add(new Pos { StoreID = array[0], PosID = array[1] });
......
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