From 22f5524bc655c1bf58efac55bca462aecb77b7a4 Mon Sep 17 00:00:00 2001 From: shanji <18996038927@163.com> Date: Mon, 10 Jul 2023 11:04:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=94=B6=E8=B4=A7=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BatchPurchase/BatchPurchaseBusiness.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs b/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs index 236a16f9..5a758973 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(),