chenjiahe
2023-04-02 2a45d42cebd76d0f0add392c0e06d2cbbb36c63f
phi_platform_user/src/main/java/com/hx/phip/tool/refund/PaymentCountTool.java
@@ -48,6 +48,8 @@
        BigDecimal scale = BigDecimal.valueOf(refundNum).divide(BigDecimal.valueOf(sum),15, RoundingMode.HALF_UP);
        //剩余可退款金额
        BigDecimal surplusTotal = total.subtract(realRefundTotal).setScale(2,RoundingMode.HALF_UP);
        System.out.println("realRefundTotal:"+realRefundTotal);
        System.out.println("surplusTotal:"+surplusTotal);
        //算出本次要退款金额
        if(refundTotal == null){
            if(surplusNum.equals(refundNum)) {
@@ -61,7 +63,7 @@
                }
            }
        }
        System.out.println("refundTotal:"+refundTotal);
        //转载分配好的支付方式和金额
        List<DistributionRedundMethodVo> distributionPayList = new ArrayList<>();
        if(payMethodVoList != null && payMethodVoList.size() > 0){