From 09ba10c946ae62917f7b59758f85deb516fc6273 Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Fri, 14 Apr 2023 02:14:38 +0800 Subject: [PATCH] 1 --- .../BatchPurchase/BatchPurchaseBusiness.cs | 10 +++++----- .../BatchPurchase/BatchPurchasePreviewOrderRequest.cs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs b/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs index 4c5b5dc0..8c8ceffd 100644 --- a/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs +++ b/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs @@ -112,10 +112,10 @@ namespace BBWY.Server.Business if (request.ProductParamList == null || request.ProductParamList.Count() == 0) throw new BusinessException("缺少商品参数"); - if (request.ConsigneeRequest == null || - string.IsNullOrEmpty(request.ConsigneeRequest.Address) || - string.IsNullOrEmpty(request.ConsigneeRequest.Mobile) || - string.IsNullOrEmpty(request.ConsigneeRequest.ContactName)) + if (request.Consignee == null || + string.IsNullOrEmpty(request.Consignee.Address) || + string.IsNullOrEmpty(request.Consignee.Mobile) || + string.IsNullOrEmpty(request.Consignee.ContactName)) throw new BusinessException("缺少收货人信息"); if (request.PurchaseAccountList == null || request.PurchaseAccountList.Count() == 0) throw new BusinessException("缺少采购账号"); @@ -142,7 +142,7 @@ namespace BBWY.Server.Business AppKey = purchaseAccount.AppKey, AppSecret = purchaseAccount.AppSecret, AppToken = purchaseAccount.AppToken, - Consignee = request.ConsigneeRequest, + Consignee = request.Consignee, Platform = purchasePlatform, PurchaseOrderMode = request.PurchaseOrderMode, CargoParamList = productParamList.Select(p => new CargoParamRequest() diff --git a/BBWY.Server.Model/Dto/Request/PurchaseOrderV2/BatchPurchase/BatchPurchasePreviewOrderRequest.cs b/BBWY.Server.Model/Dto/Request/PurchaseOrderV2/BatchPurchase/BatchPurchasePreviewOrderRequest.cs index b3cfa4d0..04e70772 100644 --- a/BBWY.Server.Model/Dto/Request/PurchaseOrderV2/BatchPurchase/BatchPurchasePreviewOrderRequest.cs +++ b/BBWY.Server.Model/Dto/Request/PurchaseOrderV2/BatchPurchase/BatchPurchasePreviewOrderRequest.cs @@ -9,7 +9,7 @@ namespace BBWY.Server.Model.Dto public IList PurchaseAccountList { get; set; } - public ConsigneeRequest ConsigneeRequest { get; set; } + public ConsigneeRequest Consignee { get; set; } public IList ProductParamList { get; set; } }