AMS:保存时去掉主提单号校验

master
zhangxiaofeng 8 months ago
parent c92b909211
commit b6c9f28bc6

@ -198,7 +198,8 @@ namespace djy.Service.Ams
hblist = dto.HouseDto.Select(x => x.HBLNo.Trim()).ToList();
var mlist = DbBus.Get(DbList.AMSCenter).Select<AMS_Master>().Where(x => x.IsDel != true && x.MBLNO == dto.MBLNO.Trim() && x.GID != dto.GID && x.MBLNO != "").ToOne();
var hlist = DbBus.Get(DbList.AMSCenter).Select<AMS_House>().Where(x => x.IsDel != true && hblist.Contains(x.HBLNo) && x.PID != dto.GID && x.HBLNo != "").ToOne();
if (mlist != null || hlist != null)
//if (mlist != null || hlist != null)
if (hlist != null) // 日期 AMS去掉主单号重复校验因为可能存在同一个单号分多次发送的问题
{
return "-1";
}

Loading…
Cancel
Save