소스 검색

bug fixes

plf 4 년 전
부모
커밋
7c1d53f74d
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/main/java/com/caimei/service/impl/ShoppingCartServiceImpl.java

+ 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) {