|
|
@ -1380,7 +1380,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
String otherDiscount = query.getOtherDiscount(); |
|
|
|
if (StringUtils.isNotBlank(otherDiscount) && !"0".equals(otherDiscount)) { |
|
|
|
//根据年利率和期数、贷款金额计算旧月还
|
|
|
|
BigDecimal otherPolicyMonthlyRepay = calculatePMT(new BigDecimal(otherPolicyYearRatio).divide(new BigDecimal("100"), 4, BigDecimal.ROUND_CEILING).doubleValue(), new BigDecimal(loanPeriod).doubleValue(), loanAmount.doubleValue()); |
|
|
|
BigDecimal otherPolicyMonthlyRepay = calculatePMT(new BigDecimal(otherPolicyYearRatio).divide(new BigDecimal("100"), 4, BigDecimal.ROUND_CEILING).doubleValue(), new BigDecimal(otherPolicyPeriod).doubleValue(), new BigDecimal(otherPolicyAmount).doubleValue()); |
|
|
|
//根据月还计算旧利息总额=旧月还金额 乘以 期数 减去 本金
|
|
|
|
BigDecimal otherPolicyInterest = otherPolicyMonthlyRepay.multiply(new BigDecimal(otherPolicyPeriod)).subtract(new BigDecimal(otherPolicyAmount)); |
|
|
|
//根据旧利息总额和厂家贴息计算新利息总额
|
|
|
|