Browse Source

bugfix单品促销

chao 3 years ago
parent
commit
9987d680a6

+ 1 - 1
src/main/java/com/caimei365/order/components/OrderCommonService.java

@@ -85,7 +85,7 @@ public class OrderCommonService {
                 if (null != orderProduct.getOrderPromotionsId() && orderProduct.getOrderPromotionsId() > 0) {
                     PromotionsVo promotions = orderCommonMapper.getOrderPromotionsById(orderProduct.getOrderPromotionsId());
                     if (null != promotions) {
-                        if (Integer.valueOf(1).equals(promotions.getType()) && Integer.valueOf(1).equals(promotions.getMode())) {
+                        if (taxFlag && Integer.valueOf(1).equals(promotions.getType()) && Integer.valueOf(1).equals(promotions.getMode())) {
                             promotions.setTouchPrice(MathUtil.add(promotions.getTouchPrice(), MathUtil.div(MathUtil.mul(promotions.getTouchPrice(), orderProduct.getTaxRate()), 100)).doubleValue());
                         }
                         orderProduct.setProductPromotion(promotions);