소스 검색

分账逻辑优化

liuj 1 개월 전
부모
커밋
f5d91ec7a3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/com/sunxung/factoring/service/ledger/impl/LedgerManagementServiceImpl.java

+ 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");
         }