Bläddra i källkod

分账逻辑优化

liuj 1 månad sedan
förälder
incheckning
ba1e9aa7d7

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