修改导入功能
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user