Commit 216bdeae by xiaoer.li@freemud.com

代金券增加小料金额

parent 4b045e8b
......@@ -551,7 +551,11 @@ public class CouponServiceImpl implements CouponService {
totalAmount = totalAmount + product.getAmount() * cartGood.getQty();
if (CollectionUtils.isNotEmpty(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