|
|
@ -701,7 +701,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
} |
|
|
|
} |
|
|
|
//是否勾选保险
|
|
|
|
/* if (dto.isPremiumCb()) { |
|
|
|
if (dto.isPremiumCb()) { |
|
|
|
//保险
|
|
|
|
String premium = dto.getPremium(); |
|
|
|
if (StringUtils.isBlank(premium)) { |
|
|
@ -720,9 +720,9 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}*/ |
|
|
|
} |
|
|
|
//是否勾选购置税
|
|
|
|
/*if (dto.isPurchaseTaxCb()) { |
|
|
|
if (dto.isPurchaseTaxCb()) { |
|
|
|
//购置税
|
|
|
|
String purchaseTax = dto.getPurchaseTax(); |
|
|
|
if (StringUtils.isBlank(purchaseTax)) { |
|
|
@ -741,7 +741,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
return rb.setMsg("抵顶购置税不能超过购置税"); |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |
|
|
|
} |
|
|
|
//产品期数
|
|
|
|
String loanPeriod = dto.getLoanPeriod(); |
|
|
|
if (StringUtils.isBlank(loanPeriod)) { |
|
|
@ -881,10 +881,15 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
loanSolutionsDetail.setProxyPurchasetax(StringUtils.isNotBlank(proxyPurchasetax) ? new BigDecimal(proxyPurchasetax) : BigDecimal.ZERO); |
|
|
|
//抵顶首年保险费
|
|
|
|
String offsetPremium = dto.getOffsetPremium(); |
|
|
|
loanSolutionsDetail.setOffsetPremium(StringUtils.isNotBlank(offsetPremium) ? new BigDecimal(offsetPremium) : BigDecimal.ZERO); |
|
|
|
//抵顶购置税
|
|
|
|
String offsetPurchasetax = dto.getOffsetPurchasetax(); |
|
|
|
loanSolutionsDetail.setOffsetPurchasetax(StringUtils.isNotBlank(offsetPurchasetax) ? new BigDecimal(offsetPurchasetax) : BigDecimal.ZERO); |
|
|
|
if ("0".equals(dto.getIsPack())) { |
|
|
|
loanSolutionsDetail.setOffsetPremium(BigDecimal.ZERO); |
|
|
|
loanSolutionsDetail.setOffsetPurchasetax(BigDecimal.ZERO); |
|
|
|
} else { |
|
|
|
loanSolutionsDetail.setOffsetPremium(StringUtils.isNotBlank(offsetPremium) ? new BigDecimal(offsetPremium) : BigDecimal.ZERO); |
|
|
|
loanSolutionsDetail.setOffsetPurchasetax(StringUtils.isNotBlank(offsetPurchasetax) ? new BigDecimal(offsetPurchasetax) : BigDecimal.ZERO); |
|
|
|
} |
|
|
|
String proxyTotal = dto.getProxyTotal(); |
|
|
|
loanSolutionsDetail.setProxyTotal(StringUtils.isNotBlank(proxyTotal) ? new BigDecimal(proxyTotal) : BigDecimal.ZERO); |
|
|
|
String offsetTotal = dto.getOffsetTotal(); |
|
|
|