Commit 2215fffa by chongfu.liang

加料支持多份

parent 01661807
...@@ -1623,7 +1623,10 @@ public class AbstractApportionService implements GetShoppingCartGoodsApportionSe ...@@ -1623,7 +1623,10 @@ public class AbstractApportionService implements GetShoppingCartGoodsApportionSe
if (sm != null) { if (sm != null) {
mg.setAmount(sm.getRealAmount().longValue()); mg.setAmount(sm.getRealAmount().longValue());
} }
mg.setQty(mg.getQty() * cartGoods.getQty());
mg.setOriginalAmount(mg.getFinalPrice() * mg.getQty());
} }
} }
if (GoodsTypeEnum.SET_MEAL_GOODS.getGoodsType().equals(cartGoods.getGoodsType())) { if (GoodsTypeEnum.SET_MEAL_GOODS.getGoodsType().equals(cartGoods.getGoodsType())) {
cartGoods.setOriginalAmount(originPrice); cartGoods.setOriginalAmount(originPrice);
......
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