Browse Source

采购方案保存去掉采购商地址验证

qianyi
shanji 3 years ago
parent
commit
37dd95fd35
  1. 6
      BBWY.Server.Business/PurchaseScheme/PurchaseSchemeBusiness.cs

6
BBWY.Server.Business/PurchaseScheme/PurchaseSchemeBusiness.cs

@ -30,13 +30,11 @@ namespace BBWY.Server.Business
if (batchCURDSchemeRequest.EditPurchaseSchemeList.Count == 0 && batchCURDSchemeRequest.AddPurchaseSchemeList.Count == 0)
throw new BusinessException("非法参数");
if (batchCURDSchemeRequest.AddPurchaseSchemeList.Any(p => string.IsNullOrEmpty(p.PurchaserId) ||
string.IsNullOrEmpty(p.PurchaserName) ||
string.IsNullOrEmpty(p.PurchaserLocation)))
string.IsNullOrEmpty(p.PurchaserName)))
throw new BusinessException("新增方案中有采购商Id/Name/Location为空");
if (batchCURDSchemeRequest.AddPurchaseSchemeList.Any(p => string.IsNullOrEmpty(p.PurchaserId) ||
string.IsNullOrEmpty(p.PurchaserName) ||
string.IsNullOrEmpty(p.PurchaserLocation)))
string.IsNullOrEmpty(p.PurchaserName)))
throw new BusinessException("编辑方案中有采购商Id/Name/Location为空");
List<PurchaseScheme> addPurchaseSchemeList = null;

Loading…
Cancel
Save