yuyou_x
2024-03-13 869f6dd62368ecad86bcd2d6016fdaae093a4af2
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;