修改导入功能

This commit is contained in:
FanLian
2023-08-10 11:13:55 +08:00
parent 12bd8e6de6
commit 8db0c10e59
4 changed files with 29 additions and 25 deletions

View File

@@ -83,10 +83,6 @@ namespace Tnb.WarehouseMgr
var eCode = d["endpoint_code"].ToString() ?? string.Empty;
var dis = d["distance"].ToString() ?? string.Empty;
if(sCode == eCode) throw new AppFriendlyException("起始点位不能等于终止点位", 500);
//if (sCode.IsEmpty())
// throw new AppFriendlyException($"第{dics.IndexOf(d) + 1}个数据数据起始点位编号不可为空", 500);
//if (eCode.IsEmpty())
// throw new AppFriendlyException($"第{dics.IndexOf(d) + 1}个数据终止点位编号不可为空", 500);
if (dis.IsEmpty())
throw new AppFriendlyException($"第{dics.IndexOf(d) + 1}个数据距离不可为空", 500);
pointCodes.Add(sCode);