Commit 8256e773 by chongfu.liang

小料商品价格

parent 4f35569d
......@@ -620,6 +620,7 @@ public class CouponServiceImpl implements CouponService {
if (CollectionUtils.isNotEmpty(cartGood.getProductMaterialList())) {
for (CartGoods.MaterialGoods materialGoods : cartGood.getProductMaterialList()) {
Integer materialCurrentCouponDiscount = materialGoods.getCurrentCouponDiscount() != null ? materialGoods.getCurrentCouponDiscount() : 0;
product.setAmount(product.getAmount() + materialGoods.getAmount().intValue() + materialCurrentCouponDiscount);
totalAmount = totalAmount + materialGoods.getAmount() + materialCurrentCouponDiscount;
}
}
......
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