Commit e175e832 by 孙昱

Merge branch 'feature/20201125_多规格商品下添加单规格商品_yu.sun' into qa

parents 7d6d96b9 4255614d
...@@ -76,7 +76,7 @@ public class SetMealCalculation { ...@@ -76,7 +76,7 @@ public class SetMealCalculation {
Long comboxmaterialPrice = 0L; Long comboxmaterialPrice = 0L;
if(CollectionUtils.isNotEmpty(comboxGoods.getProductMaterialList())){ if(CollectionUtils.isNotEmpty(comboxGoods.getProductMaterialList())){
for (CartGoods.MaterialGoods materialGoods : comboxGoods.getProductMaterialList()){ for (CartGoods.MaterialGoods materialGoods : comboxGoods.getProductMaterialList()){
comboxmaterialPrice+= materialGoods.getFinalPrice() * cartGoods.getQty(); comboxmaterialPrice+= null != materialGoods.getFinalPrice() ? materialGoods.getFinalPrice() * cartGoods.getQty() : 0;
} }
} }
comboxGoods.setAmount(comboxGoods.getAmount()+comboxmaterialPrice); comboxGoods.setAmount(comboxGoods.getAmount()+comboxmaterialPrice);
......
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