|
|
@ -1053,11 +1053,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
} else { |
|
|
|
solutionsDetailsVo.setShowMore(true); |
|
|
|
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(solutionsDetailsVo.getPolicySid()); |
|
|
|
if(loanFinPolicy != null){ |
|
|
|
if (loanFinPolicy != null) { |
|
|
|
String serviceChargeTypeKey = loanFinPolicy.getServiceAmountTypeKey(); |
|
|
|
BigDecimal serviceChargeTypeValue = loanFinPolicy.getServiceAmount(); |
|
|
|
solutionsDetailsVo.setServiceChargeTypeKey(serviceChargeTypeKey); |
|
|
|
if(serviceChargeTypeValue != null){ |
|
|
|
if (serviceChargeTypeValue != null) { |
|
|
|
solutionsDetailsVo.setServiceChargeTypeValue(serviceChargeTypeValue.toString()); |
|
|
|
} |
|
|
|
} |
|
|
@ -1068,11 +1068,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
} else if ("2".equals(busSalesOrder.getPayTypeKey())) {//贷款
|
|
|
|
solutionsDetailsVo.setShowMore(true); |
|
|
|
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(solutionsDetailsVo.getPolicySid()); |
|
|
|
if(loanFinPolicy != null){ |
|
|
|
if (loanFinPolicy != null) { |
|
|
|
String serviceChargeTypeKey = loanFinPolicy.getServiceAmountTypeKey(); |
|
|
|
BigDecimal serviceChargeTypeValue = loanFinPolicy.getServiceAmount(); |
|
|
|
solutionsDetailsVo.setServiceChargeTypeKey(serviceChargeTypeKey); |
|
|
|
if(serviceChargeTypeValue != null){ |
|
|
|
if (serviceChargeTypeValue != null) { |
|
|
|
solutionsDetailsVo.setServiceChargeTypeValue(serviceChargeTypeValue.toString()); |
|
|
|
} |
|
|
|
} |
|
|
@ -1174,11 +1174,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
BeanUtil.copyProperties(loanSolutionsDetail, solutionsDetailsVo); |
|
|
|
} |
|
|
|
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(loanSolutions.getPolicySid()); |
|
|
|
if(loanFinPolicy != null){ |
|
|
|
if (loanFinPolicy != null) { |
|
|
|
String serviceChargeTypeKey = loanFinPolicy.getServiceAmountTypeKey(); |
|
|
|
BigDecimal serviceChargeTypeValue = loanFinPolicy.getServiceAmount(); |
|
|
|
solutionsDetailsVo.setServiceChargeTypeKey(serviceChargeTypeKey); |
|
|
|
if(serviceChargeTypeValue != null){ |
|
|
|
if (serviceChargeTypeValue != null) { |
|
|
|
solutionsDetailsVo.setServiceChargeTypeValue(serviceChargeTypeValue.toString()); |
|
|
|
} |
|
|
|
} |
|
|
@ -1263,7 +1263,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
if (StringUtils.isNotBlank(premium)) { |
|
|
|
loanTotal = loanTotal.add(new BigDecimal(premium)); |
|
|
|
} |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
if (StringUtils.isNotBlank(premium)) { |
|
|
|
vehTotalPrice = vehTotalPrice.add(new BigDecimal(premium)); |
|
|
|
} |
|
|
@ -1272,7 +1272,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
if (StringUtils.isNotBlank(purchaseTax)) { |
|
|
|
loanTotal = loanTotal.add(new BigDecimal(purchaseTax)); |
|
|
|
} |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
if (StringUtils.isNotBlank(purchaseTax)) { |
|
|
|
vehTotalPrice = vehTotalPrice.add(new BigDecimal(purchaseTax)); |
|
|
|
} |
|
|
@ -1385,7 +1385,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
calculateVo.setDownPayAmountsRatio(downPayAmountsRatio.toString()); |
|
|
|
//
|
|
|
|
BigDecimal downPayRatioLeast = loanFinPolicy.getDownPayRatioLeast(); |
|
|
|
if(downPayAmountsRatio.compareTo(downPayRatioLeast)<0){ |
|
|
|
if (downPayAmountsRatio.compareTo(downPayRatioLeast) < 0) { |
|
|
|
return rb.setMsg("实际首付比例不能低于产品政策中的最低首付比例"); |
|
|
|
} |
|
|
|
//总贷款金额
|
|
|
@ -1405,7 +1405,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
} else { |
|
|
|
monthlyRepay = loanPayMoneyAll.toString() + "/" + calculateVo.getLoanPayMoney(); |
|
|
|
} |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
monthlyRepay = loanPayMoneyAll.toString(); |
|
|
|
} |
|
|
|
|
|
|
@ -1627,11 +1627,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
solutionssVo.setShowMore(true); |
|
|
|
solutionssVo.setFactoryDiscountUse("抵利息"); |
|
|
|
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(solutionssVo.getPolicySid()); |
|
|
|
if(loanFinPolicy != null){ |
|
|
|
if (loanFinPolicy != null) { |
|
|
|
String serviceChargeTypeKey = loanFinPolicy.getServiceAmountTypeKey(); |
|
|
|
BigDecimal serviceChargeTypeValue = loanFinPolicy.getServiceAmount(); |
|
|
|
solutionssVo.setServiceChargeTypeKey(serviceChargeTypeKey); |
|
|
|
if(serviceChargeTypeValue != null){ |
|
|
|
if (serviceChargeTypeValue != null) { |
|
|
|
solutionssVo.setServiceChargeTypeValue(serviceChargeTypeValue.toString()); |
|
|
|
} |
|
|
|
} |
|
|
@ -1660,11 +1660,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
solutionssVo.setShowMore(true); |
|
|
|
solutionssVo.setFactoryDiscountUse("抵利息"); |
|
|
|
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(solutionssVo.getPolicySid()); |
|
|
|
if(loanFinPolicy != null){ |
|
|
|
if (loanFinPolicy != null) { |
|
|
|
String serviceChargeTypeKey = loanFinPolicy.getServiceAmountTypeKey(); |
|
|
|
BigDecimal serviceChargeTypeValue = loanFinPolicy.getServiceAmount(); |
|
|
|
solutionssVo.setServiceChargeTypeKey(serviceChargeTypeKey); |
|
|
|
if(serviceChargeTypeValue != null){ |
|
|
|
if (serviceChargeTypeValue != null) { |
|
|
|
solutionssVo.setServiceChargeTypeValue(serviceChargeTypeValue.toString()); |
|
|
|
} |
|
|
|
} |
|
|
@ -1742,8 +1742,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
//融资票据
|
|
|
|
StringBuilder accessoriesAmountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionssVo.getAccessoriesAmount())) { |
|
|
|
accessoriesAmountValue = accessoriesAmountValue.append("\t").append("配件:").append(solutionssVo.getAccessoriesAmount()); |
|
|
|
|
|
|
|
if(!solutionssVo.isAccessoriesAmountCb()){ |
|
|
|
accessoriesAmountValue = accessoriesAmountValue.append("\t").append("配件:").append("0"); |
|
|
|
}else{ |
|
|
|
accessoriesAmountValue = accessoriesAmountValue.append("\t").append("配件:").append(solutionssVo.getAccessoriesAmount()); |
|
|
|
} |
|
|
|
} else { |
|
|
|
accessoriesAmountValue = accessoriesAmountValue.append("\t").append("配件:").append("-"); |
|
|
|
} |
|
|
@ -1751,8 +1754,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
//挂车
|
|
|
|
StringBuilder trailerAmountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionssVo.getTrailerAmount())) { |
|
|
|
trailerAmountValue = trailerAmountValue.append("\t").append("挂车:").append(solutionssVo.getTrailerAmount()); |
|
|
|
|
|
|
|
if(!solutionssVo.isTrailerAmountCb()){ |
|
|
|
trailerAmountValue = trailerAmountValue.append("\t").append("挂车:").append("0"); |
|
|
|
}else{ |
|
|
|
trailerAmountValue = trailerAmountValue.append("\t").append("挂车:").append(solutionssVo.getTrailerAmount()); |
|
|
|
} |
|
|
|
} else { |
|
|
|
trailerAmountValue = trailerAmountValue.append("\t").append("挂车:").append("-"); |
|
|
|
} |
|
|
@ -1760,8 +1766,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
//保险
|
|
|
|
StringBuilder premiumValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionssVo.getPremium())) { |
|
|
|
premiumValue = premiumValue.append("\t").append("保险:").append(solutionssVo.getPremium()); |
|
|
|
|
|
|
|
if (!solutionssVo.isPremiumCb()) { |
|
|
|
premiumValue = premiumValue.append("\t").append("保险:").append("0"); |
|
|
|
}else{ |
|
|
|
premiumValue = premiumValue.append("\t").append("保险:").append(solutionssVo.getPremium()); |
|
|
|
} |
|
|
|
} else { |
|
|
|
premiumValue = premiumValue.append("\t").append("保险:").append("-"); |
|
|
|
} |
|
|
@ -1769,7 +1778,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
//购置税
|
|
|
|
StringBuilder purchaseTaxValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionssVo.getPurchaseTax())) { |
|
|
|
purchaseTaxValue = purchaseTaxValue.append("\t").append("购置税:").append(solutionssVo.getPurchaseTax()); |
|
|
|
if(!solutionssVo.isPurchaseTaxCb()){ |
|
|
|
purchaseTaxValue = purchaseTaxValue.append("\t").append("购置税:").append("0"); |
|
|
|
}else{ |
|
|
|
purchaseTaxValue = purchaseTaxValue.append("\t").append("购置税:").append(solutionssVo.getPurchaseTax()); |
|
|
|
} |
|
|
|
} else { |
|
|
|
purchaseTaxValue = purchaseTaxValue.append("\t").append("购置税:").append("-"); |
|
|
|
} |
|
|
@ -1778,7 +1791,6 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
StringBuilder downPayRatioValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionssVo.getDownPayRatio())) { |
|
|
|
downPayRatioValue = downPayRatioValue.append("首付比例(%):").append(solutionssVo.getDownPayRatio()); |
|
|
|
|
|
|
|
} else { |
|
|
|
downPayRatioValue = downPayRatioValue.append("首付比例(%):").append("-"); |
|
|
|
} |
|
|
@ -1787,7 +1799,6 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
StringBuilder downPayAmountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionssVo.getDownPayAmount())) { |
|
|
|
downPayAmountValue = downPayAmountValue.append("首付金额:").append(solutionssVo.getDownPayAmount()); |
|
|
|
|
|
|
|
} else { |
|
|
|
downPayAmountValue = downPayAmountValue.append("首付金额:").append("-"); |
|
|
|
} |
|
|
@ -2238,8 +2249,6 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
SolutionssVo solutionssVo = new SolutionssVo(); |
|
|
|
BeanUtil.copyProperties(query, solutionssVo); |
|
|
|
if (query.isShowMore()) { |
|
|
|
|
|
|
|
|
|
|
|
if (query.isPremiumCb()) { |
|
|
|
//保险
|
|
|
|
String premium = query.getPremium(); |
|
|
@ -2289,16 +2298,16 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
CalculateVo calculateVo = resultBean.getData(); |
|
|
|
BeanUtil.copyProperties(calculateVo, solutionssVo); |
|
|
|
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(query.getPolicySid()); |
|
|
|
if(loanFinPolicy != null){ |
|
|
|
if (loanFinPolicy != null) { |
|
|
|
String serviceChargeTypeKey = loanFinPolicy.getServiceAmountTypeKey(); |
|
|
|
BigDecimal serviceChargeTypeValue = loanFinPolicy.getServiceAmount(); |
|
|
|
solutionssVo.setServiceChargeTypeKey(serviceChargeTypeKey); |
|
|
|
if(serviceChargeTypeValue != null){ |
|
|
|
if (serviceChargeTypeValue != null) { |
|
|
|
solutionssVo.setServiceChargeTypeValue(serviceChargeTypeValue.toString()); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
if(query.isOtherPolicyState()){ |
|
|
|
if (query.isOtherPolicyState()) { |
|
|
|
//验证贷款金额是否不大于最高贷款金额
|
|
|
|
LoanFinOtherPolicy loanFinOtherPolicy = loanFinOtherPolicyService.fetchBySid(query.getOtherPolicySid()); |
|
|
|
if (loanFinOtherPolicy != null) { |
|
|
@ -2394,11 +2403,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
} |
|
|
|
} |
|
|
|
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(solutionssVo.getPolicySid()); |
|
|
|
if(loanFinPolicy != null){ |
|
|
|
if (loanFinPolicy != null) { |
|
|
|
String serviceChargeTypeKey = loanFinPolicy.getServiceAmountTypeKey(); |
|
|
|
BigDecimal serviceChargeTypeValue = loanFinPolicy.getServiceAmount(); |
|
|
|
solutionssVo.setServiceChargeTypeKey(serviceChargeTypeKey); |
|
|
|
if(serviceChargeTypeValue != null){ |
|
|
|
if (serviceChargeTypeValue != null) { |
|
|
|
solutionssVo.setServiceChargeTypeValue(serviceChargeTypeValue.toString()); |
|
|
|
} |
|
|
|
} |
|
|
@ -2431,11 +2440,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
} |
|
|
|
} |
|
|
|
LoanFinPolicy loanFinPolicy = loanFinPolicyService.fetchBySid(solutionssVo.getPolicySid()); |
|
|
|
if(loanFinPolicy != null){ |
|
|
|
if (loanFinPolicy != null) { |
|
|
|
String serviceChargeTypeKey = loanFinPolicy.getServiceAmountTypeKey(); |
|
|
|
BigDecimal serviceChargeTypeValue = loanFinPolicy.getServiceAmount(); |
|
|
|
solutionssVo.setServiceChargeTypeKey(serviceChargeTypeKey); |
|
|
|
if(serviceChargeTypeValue != null){ |
|
|
|
if (serviceChargeTypeValue != null) { |
|
|
|
solutionssVo.setServiceChargeTypeValue(serviceChargeTypeValue.toString()); |
|
|
|
} |
|
|
|
} |
|
|
|