Commit 7e30c21f by 孙昱

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

parents 2b06d8b2 57181980
......@@ -512,7 +512,7 @@ public class ShoppingCartConvertAdapter {
if (ObjectUtils.equals(com.freemud.sdk.api.assortment.shoppingcart.constant.GoodsTypeEnum.SET_MEAL_GOODS.getGoodsType(), cartGoods.getGoodsType())){
int price =
(null == cartGoods.getProductGroupList() ? 0 :
cartGoods.getProductGroupList().stream().mapToInt(t -> t.getFinalPrice().intValue() * t.getQty()).sum())
cartGoods.getProductGroupList().stream().mapToInt(t -> (null == t.getFinalPrice() ? 0 : t.getFinalPrice().intValue()) * t.getQty()).sum())
+ cartGoods.getFinalPrice().intValue();
productType.setPrice(price);
}else{
......
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