From e61187ed2221c1f5776a1adb4f25a78b170fd56c Mon Sep 17 00:00:00 2001 From: shanji <18996038927@163.com> Date: Thu, 13 Jul 2023 16:02:16 +0800 Subject: [PATCH] 1 --- .../PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs b/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs index 8b70b7e3..337f5bdf 100644 --- a/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs +++ b/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs @@ -574,6 +574,8 @@ namespace BBWY.Server.Business } if (request.PurchaseAccountList == null || request.PurchaseAccountList.Count() == 0) throw new BusinessException("缺少采购账号"); + if (request.IntoStoreType == null) + throw new BusinessException("缺少入仓类型"); if (request.IntoStoreType == Enums.IntoStoreType.发回齐越) { if (request.CargoParamGroupList.Any(c => c.CargoParamList.Any(x => x.StockType == null)))