liujunchi il y a 2 ans
Parent
commit
ed6263d67f

+ 1 - 1
cooleshow-mall/mall-portal/src/main/java/com/yonge/cooleshow/portal/service/impl/OmsPortalOrderServiceImpl.java

@@ -1345,7 +1345,7 @@ public class OmsPortalOrderServiceImpl implements OmsPortalOrderService {
         BigDecimal precisionAmount = coupon.subtract(reduce);
         for (OmsOrderItem omsOrderItem : orderItemList) {
             BigDecimal multiply = omsOrderItem.getProductPrice()
-                                              .multiply(BigDecimal.valueOf(omsOrderItem.getProductQuantity())).subtract(omsOrderItem.getCouponAmount());
+                                              .multiply(BigDecimal.valueOf(omsOrderItem.getProductQuantity())).subtract(omsOrderItem.getCouponAmount().multiply(BigDecimal.valueOf(omsOrderItem.getProductQuantity())));
             if (multiply.compareTo(precisionAmount) >=0) {
                 omsOrderItem.setPrecisionAmount(precisionAmount);
                 break;