diff --git a/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs b/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs index 45bb4370..8b70b7e3 100644 --- a/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs +++ b/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs @@ -559,7 +559,19 @@ namespace BBWY.Server.Business string.IsNullOrEmpty(request.Consignee.Address) || string.IsNullOrEmpty(request.Consignee.Mobile) || string.IsNullOrEmpty(request.Consignee.ContactName)) - throw new BusinessException("缺少收货人信息"); + { + request.Consignee = new ConsigneeRequest() + { + ContactName = "默认收货人", + Address = "齐越众创投资有限公司", + Province = "福建省", + City = "泉州市", + County = "鲤城区", + Town = "鲤城区", + Mobile = "15000000000", + TelePhone = "15000000000" + }; + } if (request.PurchaseAccountList == null || request.PurchaseAccountList.Count() == 0) throw new BusinessException("缺少采购账号"); if (request.IntoStoreType == Enums.IntoStoreType.发回齐越) @@ -680,7 +692,7 @@ namespace BBWY.Server.Business var currentOrderSkuFreightAmount = purchaseOrderSimpleInfo.FreightAmount / belongSkuGroups.Count(); //采购运费(按sku数均分) var belongSkuBasicInfo = belongSkuBasicInfoList.FirstOrDefault(x => x.Id == belongSkuGroup.Key); - + var purchaseOrderSku = new PurchaseOrderSku() { Id = idGenerator.NewLong(),