Browse Source

bug fixes

plf 4 years ago
parent
commit
7c1d53f74d

+ 1 - 2
src/main/java/com/caimei/service/impl/ShoppingCartServiceImpl.java

@@ -104,8 +104,7 @@ public class ShoppingCartServiceImpl implements ShoppingCartService {
             // 活动价
             if (activity.getMode() == 1) {
                 product.setRetailPrice(activity.getTouchPrice());
-                BigDecimal reduction = MathUtil.sub(product.getPrice(), activity.getTouchPrice());
-                product.setFullReduction(MathUtil.mul(reduction, product.getProductCount()));
+                product.setFullReduction(BigDecimal.ZERO);
             } else {
                 BigDecimal totalPrice = MathUtil.mul(product.getProductCount(), product.getPrice());
                 if (addTaxFlag) {