Commit c3f670e6 by ping.wu

报错修改

parent 3ae88433
...@@ -74,8 +74,10 @@ public class SetMealCalculation { ...@@ -74,8 +74,10 @@ public class SetMealCalculation {
if(CollectionUtils.isNotEmpty(cartGoods.getProductComboList())){ if(CollectionUtils.isNotEmpty(cartGoods.getProductComboList())){
for (CartGoods.ComboxGoods comboxGoods : cartGoods.getProductComboList()){ for (CartGoods.ComboxGoods comboxGoods : cartGoods.getProductComboList()){
Long comboxmaterialPrice = 0L; Long comboxmaterialPrice = 0L;
for (CartGoods.MaterialGoods materialGoods : comboxGoods.getProductMaterialList()){ if(CollectionUtils.isNotEmpty(comboxGoods.getProductMaterialList())){
comboxmaterialPrice+= materialGoods.getFinalPrice() * cartGoods.getQty(); for (CartGoods.MaterialGoods materialGoods : comboxGoods.getProductMaterialList()){
comboxmaterialPrice+= materialGoods.getFinalPrice() * cartGoods.getQty();
}
} }
comboxGoods.setAmount(comboxGoods.getAmount()+comboxmaterialPrice); comboxGoods.setAmount(comboxGoods.getAmount()+comboxmaterialPrice);
materialPrice = materialPrice + comboxmaterialPrice; materialPrice = materialPrice + 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