shanji 2 years ago
parent
commit
09ba10c946
  1. 10
      BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs
  2. 2
      BBWY.Server.Model/Dto/Request/PurchaseOrderV2/BatchPurchase/BatchPurchasePreviewOrderRequest.cs

10
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()

2
BBWY.Server.Model/Dto/Request/PurchaseOrderV2/BatchPurchase/BatchPurchasePreviewOrderRequest.cs

@ -9,7 +9,7 @@ namespace BBWY.Server.Model.Dto
public IList<PurchaseAccount> PurchaseAccountList { get; set; }
public ConsigneeRequest ConsigneeRequest { get; set; }
public ConsigneeRequest Consignee { get; set; }
public IList<BatchPurchasePreviewOrderProductParamRequest> ProductParamList { get; set; }
}

Loading…
Cancel
Save