From 99e3947d2dcc6bbcbb78064cd56ccc112735c181 Mon Sep 17 00:00:00 2001 From: fanzongzhe <285169773@qq.com> Date: Thu, 11 Jul 2024 11:36:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B4=B7=E5=90=8E=E7=AE=97?= =?UTF-8?q?=E6=B3=95=E9=80=BB=E8=BE=915.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LoanRepaymentScheduleService.java | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentschedule/LoanRepaymentScheduleService.java b/anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentschedule/LoanRepaymentScheduleService.java index e54ee117a7..3977e55312 100644 --- a/anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentschedule/LoanRepaymentScheduleService.java +++ b/anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentschedule/LoanRepaymentScheduleService.java @@ -5579,6 +5579,10 @@ public class LoanRepaymentScheduleService extends MybatisBaseService schedules = saveHistoryRecord(list, userSid); + System.out.println("============================"); + System.out.println(schedules); + System.out.println("============================"); + generateHistoryData(schedules, userSid); } catch (Exception e) { e.printStackTrace(); @@ -6004,7 +6008,6 @@ public class LoanRepaymentScheduleService extends MybatisBaseService 0) { int M = maxInt(M1, M2); //取最大还款期数 for (int i = M; i <= M && i > 0; i--) { BigDecimal m1i = BigDecimal.ZERO; //主产品月还 @@ -6021,7 +6024,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService= 0 ? m1i : T1; BigDecimal L1 = BigDecimal.ZERO; if (D1.compareTo(T) >= 0) { - L1 = T; + L1 = L; } else { BigDecimal bigDecimal = D1.divide(T, 2, BigDecimal.ROUND_HALF_UP); L1 = L.multiply(bigDecimal); @@ -6049,7 +6052,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService= 0 ? m1i : Q1; BigDecimal B1 = BigDecimal.ZERO; if (temp.compareTo(Q) >= 0) { - B1 = Q; + B1 = B; } else { BigDecimal bigDecimal = temp.divide(Q, 2, BigDecimal.ROUND_HALF_UP); B1 = B.multiply(bigDecimal); @@ -6129,7 +6132,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService= 0 ? m2i : T1; BigDecimal L1 = BigDecimal.ZERO; if (D1.compareTo(T) >= 0) { - L1 = T; + L1 = L; } else { BigDecimal bigDecimal = D1.divide(T, 2, BigDecimal.ROUND_HALF_UP); L1 = L.multiply(bigDecimal); @@ -6157,7 +6160,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService= 0 ? m2i : Q1; BigDecimal B1 = BigDecimal.ZERO; if (temp.compareTo(Q) >= 0) { - B1 = Q; + B1 = B; } else { BigDecimal bigDecimal = temp.divide(Q, 2, BigDecimal.ROUND_HALF_UP); B1 = B.multiply(bigDecimal); @@ -6227,7 +6230,6 @@ public class LoanRepaymentScheduleService extends MybatisBaseService 0) { int M = maxInt(M1, M2); //取最大还款期数 for (int i = M; i <= M && i > 0; i--) { BigDecimal m1i = BigDecimal.ZERO; //主产品月还 @@ -6352,7 +6353,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService= 0 ? m1i : T1; BigDecimal L1 = BigDecimal.ZERO; if (D1.compareTo(T) >= 0) { - L1 = T; + L1 = L; } else { BigDecimal bigDecimal = D1.divide(T, 2, BigDecimal.ROUND_HALF_UP); L1 = L.multiply(bigDecimal); @@ -6380,7 +6381,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService= 0 ? m1i : Q1; BigDecimal B1 = BigDecimal.ZERO; if (temp.compareTo(Q) >= 0) { - B1 = Q; + B1 = B; } else { BigDecimal bigDecimal = temp.divide(Q, 2, BigDecimal.ROUND_HALF_UP); B1 = B.multiply(bigDecimal); @@ -6460,7 +6461,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService= 0 ? m2i : T1; BigDecimal L1 = BigDecimal.ZERO; if (D1.compareTo(T) >= 0) { - L1 = T; + L1 = L; } else { BigDecimal bigDecimal = D1.divide(T, 2, BigDecimal.ROUND_HALF_UP); L1 = L.multiply(bigDecimal); @@ -6488,7 +6489,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService= 0 ? m2i : Q1; BigDecimal B1 = BigDecimal.ZERO; if (temp.compareTo(Q) >= 0) { - B1 = Q; + B1 = B; } else { BigDecimal bigDecimal = temp.divide(Q, 2, BigDecimal.ROUND_HALF_UP); B1 = B.multiply(bigDecimal); @@ -6559,7 +6560,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService