Commit ea00187b by xiaoer.li@freemud.com

Merge remote-tracking branch 'remotes/origin/feature/1.9.32_商品加料' into qa

parents 90e86b9f 216bdeae
...@@ -551,7 +551,11 @@ public class CouponServiceImpl implements CouponService { ...@@ -551,7 +551,11 @@ public class CouponServiceImpl implements CouponService {
totalAmount = totalAmount + product.getAmount() * cartGood.getQty(); totalAmount = totalAmount + product.getAmount() * cartGood.getQty();
if (CollectionUtils.isNotEmpty(cartGood.getProductMaterialList())) { if (CollectionUtils.isNotEmpty(cartGood.getProductMaterialList())) {
for (CartGoods.MaterialGoods materialGoods : cartGood.getProductMaterialList()) { for (CartGoods.MaterialGoods materialGoods : cartGood.getProductMaterialList()) {
totalAmount = totalAmount + materialGoods.getAmount(); Product mProduct = new Product();
mProduct.setProductId(materialGoods.getSpuId());
mProduct.setAmount(Integer.valueOf(materialGoods.getOriginalPrice() + ""));
totalAmount = totalAmount + materialGoods.getOriginalPrice() * cartGood.getQty();
productList.add(mProduct);
} }
} }
} }
......
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