chenjiahe
2024-08-02 2fe31967f22ef9535bd606910824a7347aee5ebb
下单-促销-二级单分配问题
1个文件已修改
4 ■■■■ 已修改文件
phi_platform_user/src/main/java/com/hx/phip/util/api/OrderCreateUtil.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phi_platform_user/src/main/java/com/hx/phip/util/api/OrderCreateUtil.java
@@ -2299,7 +2299,7 @@
        //父类的应付总积分
        BigDecimal integralTotal = vo.getShouldTotalPoints();
        //父类的应付总金额
        BigDecimal infoTotal = vo.getActualTotal();
        BigDecimal infoTotal = vo.getTotal();
        //父类的总金额
        BigDecimal parentTotal = vo.getProPrice().multiply(new BigDecimal(vo.getBuyNum())).setScale(2,RoundingMode.HALF_UP);
@@ -2513,7 +2513,7 @@
                    proportion = BigDecimal.ZERO;
                }
                //根据比例算出积分
                orderItemSon.setTotal(vo.getActualTotal().multiply(proportion).setScale(2,RoundingMode.HALF_UP));
                orderItemSon.setTotal(vo.getTotal().multiply(proportion).setScale(2,RoundingMode.HALF_UP));
                if(orderItemSon.getTotal().compareTo(infoTotal) > 0){
                    orderItemSon.setTotal(infoTotal);
                }