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