liuj 1 месяц назад
Родитель
Сommit
f5d91ec7a3

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

@@ -1938,7 +1938,7 @@ public class LedgerManagementServiceImpl implements LedgerManagementService {
                     } else if (assignAmount.compareTo(remandTotAmt) == -1) {
                         //分配金额小于归还总额、重新调用还款试算接口 todo
                         repayTrialResp = repayTrialBySMB(financingLoanInfo, "2", assignAmount);
-                       // repayTrialResp = repayTrialBySMB(financingLoanInfo, "3", assignAmount);
+                        // repayTrialResp = repayTrialBySMB(financingLoanInfo, "3", assignAmount);
                         managementPrincipal = new BigDecimal(repayTrialResp.getRemandPrincipal());
                         managementInterest = new BigDecimal(repayTrialResp.getRemandInt());
                         assignAmount = assignAmount.subtract(remandTotAmt);
@@ -1993,7 +1993,7 @@ public class LedgerManagementServiceImpl implements LedgerManagementService {
         RepayTrial repayTrial = new RepayTrial();
         repayTrial.setDuebillNo(financingLoanInfo.getDueBillNo());
         repayTrial.setRepayKind(repayKind);
-        if ("3".equals(repayKind)) {
+        if ("3".equals(repayKind) || "2".equals(repayKind)) {
             repayTrial.setRepayAmt(assignAmount.toString());
             repayTrial.setPrePmtTp("2");
         }