Commit 036c9d4f by xiaoer.li

对接促销算价Alpha->fix

parent 871c8449
......@@ -121,13 +121,13 @@ public class CalculationCommonService {
for (CartGoods.ComboxGoods choice : cartGoods.getProductGroupList()) {
CalculationSharingDiscountResponseDto.CalculationDiscountResult.Goods.SmallMaterial mt = gChoices.get(choice.getGoodsId());
if (mt == null) {
amount += choice.getAmount() * cartGoods.getQty();
amount += choice.getAmount() * choice.getQty();
}
else {
amount += mt.getRealAmount();
choice.setAmount(mt.getRealAmount().longValue());
}
originPrice += choice.getFinalPrice() * cartGoods.getQty();
originPrice += choice.getFinalPrice() * choice.getQty();
}
cartGoods.setAmount(cartGoods.getAmount() + amount);
}
......
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