ソースを参照

分账逻辑优化

liuj 1 ヶ月 前
コミット
ba1e9aa7d7
共有1 個のファイルを変更した3 個の追加2 個の削除を含む
  1. 3 2
      src/main/java/com/sunxung/factoring/service/ledger/impl/LedgerManagementServiceImpl.java

+ 3 - 2
src/main/java/com/sunxung/factoring/service/ledger/impl/LedgerManagementServiceImpl.java

@@ -1936,8 +1936,9 @@ public class LedgerManagementServiceImpl implements LedgerManagementService {
                         managementInterest = new BigDecimal(repayTrialResp.getRemandInt());
                         assignAmount = assignAmount.subtract(remandTotAmt);
                     } else if (assignAmount.compareTo(remandTotAmt) == -1) {
-                        //分配金额小于归还总额、重新调用还款试算接口
-                        repayTrialResp = repayTrialBySMB(financingLoanInfo, "3", assignAmount);
+                        //分配金额小于归还总额、重新调用还款试算接口 todo
+                        repayTrialResp = repayTrialBySMB(financingLoanInfo, "2", assignAmount);
+                       // repayTrialResp = repayTrialBySMB(financingLoanInfo, "3", assignAmount);
                         managementPrincipal = new BigDecimal(repayTrialResp.getRemandPrincipal());
                         managementInterest = new BigDecimal(repayTrialResp.getRemandInt());
                         assignAmount = assignAmount.subtract(remandTotAmt);