|
|
@ -241,8 +241,10 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
loanSolutions.setPolicyYearRatio(policyYearRatio); |
|
|
|
//月还金额
|
|
|
|
String loanPayMoney = dto.getLoanPayMoney(); |
|
|
|
BigDecimal monthlyRepay1 = new BigDecimal(BigInteger.ZERO); |
|
|
|
if (StringUtils.isNotBlank(loanPayMoney)) { |
|
|
|
loanSolutions.setLoanPayMoney(new BigDecimal(loanPayMoney)); |
|
|
|
monthlyRepay1 = monthlyRepay1.add(new BigDecimal(loanPayMoney)); |
|
|
|
} else { |
|
|
|
loanSolutions.setLoanPayMoney(BigDecimal.ZERO); |
|
|
|
} |
|
|
@ -280,6 +282,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
String otherPolicyMonthlyRepay = dto.getOtherPolicyMonthlyRepay(); |
|
|
|
if (StringUtils.isNotBlank(otherPolicyMonthlyRepay)) { |
|
|
|
loanSolutionsOtherpolicy.setOtherPolicyMonthlyRepay(new BigDecimal(otherPolicyMonthlyRepay)); |
|
|
|
monthlyRepay1 = monthlyRepay1.add(new BigDecimal(otherPolicyMonthlyRepay)); |
|
|
|
} else { |
|
|
|
loanSolutionsOtherpolicy.setOtherPolicyMonthlyRepay(BigDecimal.ZERO); |
|
|
|
} |
|
|
@ -305,7 +308,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
String period = otherPolicyPeriod + "/" + i; |
|
|
|
loanSolutionsOtherpolicy.setPeriod(period); |
|
|
|
//月还金额 = 总月还/贷款月还
|
|
|
|
String monthlyRepay = dto.getLoanPayMoney() + "/" + dto.getOtherPolicyMonthlyRepay(); |
|
|
|
String monthlyRepay = monthlyRepay1.toString() + "/" + dto.getMonthlyRepay(); |
|
|
|
//预计首期还款日
|
|
|
|
String returnTime = dto.getReturnTime(); |
|
|
|
loanSolutionsOtherpolicy.setMonthlyRepay(monthlyRepay); |
|
|
|