| | |
| | | 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)) { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | System.out.println("refundTotal:"+refundTotal); |
| | | //转载分配好的支付方式和金额 |
| | | List<DistributionRedundMethodVo> distributionPayList = new ArrayList<>(); |
| | | if(payMethodVoList != null && payMethodVoList.size() > 0){ |