Commit 50d6340d by 孙昱

Merge branch 'feature/20201112_套餐价格计算_yu.sun' into qa

parents ad331a5e 5cb4dcb7
......@@ -1743,8 +1743,16 @@ public class ShoppingCartMCoffeeServiceImpl {
ProductTypeBeanDTO productType = valiadShopProductResult.getProductType();
if(ObjectUtils.equals(productType.getPid(), cartGoods.getSpuId())){
//多规格商品更新套餐价格为商品返回
List<String> requestCheckSkuList = validateShopProductRequest.getProductTypeList().stream().map(pro ->
CollectionUtils.isNotEmpty(pro.getComboProductTypeList()) ? pro.getComboProductTypeList().stream().map(comboPro -> comboPro.getSkuId()).toString():null).collect(Collectors.toList());
List<String> requestCheckSkuList = new ArrayList<>();
if(CollectionUtils.isNotEmpty(validateShopProductRequest.getProductTypeList())){
for (ValidateShopProductType validateShopProductType : validateShopProductRequest.getProductTypeList()) {
if (CollectionUtils.isNotEmpty(validateShopProductType.getComboProductTypeList())){
for (ValidateSkuProductType validateSkuProductType : validateShopProductType.getComboProductTypeList()) {
requestCheckSkuList.add(validateSkuProductType.getSkuId());
}
}
}
}
List<String> cartSkuIdList = CollectionUtils.isNotEmpty(cartGoods.getProductComboList()) ? cartGoods.getProductComboList().stream().map(cartGood-> cartGood.getSkuId()).collect(Collectors.toList()) : null;
log.info("requestCheckSkuList:{} ,cartSkuList: {}",requestCheckSkuList,cartSkuIdList);
if (requestCheckSkuList.containsAll(cartSkuIdList)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment