Wms/WMS.BLL/SysServer/MaterialsServer.cs
@@ -146,6 +146,14 @@ //捕获异常 try { int count = GetMateByNo(matedto.SkuNo); if (count > 0) { throw new Exception("物料编码重复"); } //映射模型 SysMaterials mate = _mapper.Map<SysMaterials>(matedto); mate.AuditStatusNo = "9"; //审核状态 @@ -201,6 +209,14 @@ //捕获异常 try { int count = GetMateByNo(matedto.SkuNo); if (count > 0) { throw new Exception("物料编码重复"); } if (matedto.AdventTime > 365 && matedto.AdventTime < 30) { return 2;