|
|
@ -77,10 +77,14 @@ public class LoanFinPolicyService extends MybatisBaseService<LoanFinPolicyMapper |
|
|
|
loanFinPolicy.setCreateOrgName(useOrgName); |
|
|
|
loanFinPolicy.setCreateBySid(dto.getUserSid()); |
|
|
|
//政策拼接:资方简称+(+担保类型guaranteeTypeValue+、+isPack打包、不打包+)+首付比例+“+”+保证金比例
|
|
|
|
//主产品名称=资方简称+期数+(是否担保、是否打包) 首付比例+保证金比例,如: 中车 24期(担保、打包)30+0
|
|
|
|
StringBuilder policyName = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(loanFinPolicy.getBankShortName())) { |
|
|
|
policyName = policyName.append(loanFinPolicy.getBankShortName()); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(loanFinPolicy.getPeriodKey())){ |
|
|
|
policyName = policyName.append(loanFinPolicy.getPeriod()+"期"); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(loanFinPolicy.getGuaranteeTypeValue())) { |
|
|
|
policyName = policyName.append("(").append(loanFinPolicy.getGuaranteeTypeValue()); |
|
|
|
if (loanFinPolicy.getIsPack() == 1) {//1是打包,2是不打包
|
|
|
@ -114,7 +118,8 @@ public class LoanFinPolicyService extends MybatisBaseService<LoanFinPolicyMapper |
|
|
|
LoanFinOtherPolicyDto loanFinOtherPolicyDto = dto.getLoanFinOtherPolicy(); |
|
|
|
BeanUtil.copyProperties(loanFinOtherPolicyDto, loanFinOtherPolicy); |
|
|
|
//其它融名称=资方+产品类别+最高融资比例+期数
|
|
|
|
String name = loanFinOtherPolicy.getBankShortName() + "/" + loanFinOtherPolicy.getProductTypeValue() + "/" + loanFinOtherPolicy.getMaxLoanRatio() + "/" + loanFinOtherPolicy.getPeriod(); |
|
|
|
//其它融产品名称=资方简称+产品类别+期数+最高融资比例,如:中车首付贷 24 期20
|
|
|
|
String name = loanFinOtherPolicy.getBankShortName() + " " + loanFinOtherPolicy.getProductTypeValue() + " " + loanFinOtherPolicy.getPeriod()+ "期 " + loanFinOtherPolicy.getMaxLoanRatio(); |
|
|
|
loanFinOtherPolicy.setOtherPolicyName(name); |
|
|
|
loanFinOtherPolicy.setMainPolicySid(loanFinPolicy.getSid()); |
|
|
|
loanFinOtherPolicy.setUseDeptSids(deptSids); |
|
|
@ -177,7 +182,7 @@ public class LoanFinPolicyService extends MybatisBaseService<LoanFinPolicyMapper |
|
|
|
loanFinOtherPolicy.setCreateOrgName(useOrgName); |
|
|
|
loanFinOtherPolicy.setCreateBySid(dto.getUserSid()); |
|
|
|
//其它融名称=资方+产品类别+最高融资比例+期数
|
|
|
|
String name = loanFinOtherPolicy.getBankShortName() + "/" + loanFinOtherPolicy.getProductTypeValue() + "/" + loanFinOtherPolicy.getMaxLoanRatio() + "/" + loanFinOtherPolicy.getPeriod(); |
|
|
|
String name = loanFinOtherPolicy.getBankShortName() + " " + loanFinOtherPolicy.getProductTypeValue() + " " + loanFinOtherPolicy.getPeriod()+ "期 " + loanFinOtherPolicy.getMaxLoanRatio() ; |
|
|
|
loanFinOtherPolicy.setOtherPolicyName(name); |
|
|
|
loanFinOtherPolicyService.insert(loanFinOtherPolicy); |
|
|
|
} |
|
|
@ -187,6 +192,9 @@ public class LoanFinPolicyService extends MybatisBaseService<LoanFinPolicyMapper |
|
|
|
if (StringUtils.isNotBlank(loanFinPolicy.getBankShortName())) { |
|
|
|
policyName = policyName.append(loanFinPolicy.getBankShortName()); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(loanFinPolicy.getPeriodKey())){ |
|
|
|
policyName = policyName.append(loanFinPolicy.getPeriod()+"期"); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(loanFinPolicy.getGuaranteeTypeValue())) { |
|
|
|
policyName = policyName.append("(").append(loanFinPolicy.getGuaranteeTypeValue()); |
|
|
|
if (loanFinPolicy.getIsPack() == 1) {//1是打包,2是不打包
|
|
|
|