|
|
@ -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; |
|
|
|