|
@ -794,10 +794,8 @@ namespace BBWY.Server.Business |
|
|
searchProductSkuRequest.Sku = request.MainProductSku; |
|
|
searchProductSkuRequest.Sku = request.MainProductSku; |
|
|
searchProductSkuRequest.CheckStep = "主商品"; |
|
|
searchProductSkuRequest.CheckStep = "主商品"; |
|
|
mainProductSkuList = GetProductSkuList(searchProductSkuRequest); |
|
|
mainProductSkuList = GetProductSkuList(searchProductSkuRequest); |
|
|
if (mainProductSkuList == null && mainProductSkuList.Any(s => s.ProductId != request.MainProductSpu)) |
|
|
if (mainProductSkuList != null && mainProductSkuList.Any(s => s.ProductId != request.MainProductSpu)) |
|
|
throw new BusinessException("主商品SKU归属有误"); |
|
|
throw new BusinessException("主商品SKU归属有误"); |
|
|
//stepText = "添加主商品SKU";
|
|
|
|
|
|
//AddJDPromotionSku(jdClient, request.AppToken, promotionId, skuList, false);
|
|
|
|
|
|
} |
|
|
} |
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
|
|
@ -810,6 +808,9 @@ namespace BBWY.Server.Business |
|
|
giftSkuList = GetProductSkuList(searchProductSkuRequest); |
|
|
giftSkuList = GetProductSkuList(searchProductSkuRequest); |
|
|
giftSkuIdList = giftSkuList.Select(gs => gs.Id).ToList(); |
|
|
giftSkuIdList = giftSkuList.Select(gs => gs.Id).ToList(); |
|
|
|
|
|
|
|
|
|
|
|
if (giftSkuList != null && giftSkuList.Any(s => s.ProductId != request.MainProductSpu)) |
|
|
|
|
|
throw new BusinessException("主商品赠品SKU归属有误"); |
|
|
|
|
|
|
|
|
//stepText = "添加赠品SKU";
|
|
|
//stepText = "添加赠品SKU";
|
|
|
//AddJDPromotionSku(jdClient, request.AppToken, promotionId, skuList, true);
|
|
|
//AddJDPromotionSku(jdClient, request.AppToken, promotionId, skuList, true);
|
|
|
} |
|
|
} |
|
|