chenjiahe
2023-06-13 78d1e863921cb071d4859470443f7c328bb678e3
phi_platform_user/src/main/java/com/hx/phip/util/api/OrderCreateUtil.java
@@ -868,7 +868,7 @@
        //计算订单卡项金额信息
        //一级子订单:售价=卡项售价*折扣
        BigDecimal actualTotal = cardItem.getTotal().multiply(vo.getDiscount().divide(new BigDecimal(100)));
        BigDecimal actualTotal = cardItem.getTotal().multiply(vo.getDiscount().divide(new BigDecimal(100))).setScale(2,RoundingMode.HALF_UP);
        //总订单:订单优惠金额=商品的售价*数量 减去 一级子订单售价*购买数量;
        discountTotal=discountTotal.add(cardItem.getTotal().multiply(buyNum).subtract(actualTotal.multiply(buyNum)));