|
|
@ -120,7 +120,11 @@ public class LoanFinPolicyService extends MybatisBaseService<LoanFinPolicyMapper |
|
|
|
BeanUtil.copyProperties(loanFinOtherPolicyDto, loanFinOtherPolicy); |
|
|
|
//其它融名称=资方+产品类别+最高融资比例+期数
|
|
|
|
//其它融产品名称=资方简称+产品类别+期数+最高融资比例,如:中车首付贷 24 期20
|
|
|
|
String name = loanFinOtherPolicy.getBankShortName() + " " + loanFinOtherPolicy.getProductTypeValue() + " " + loanFinOtherPolicy.getPeriod()+ "期 " + loanFinOtherPolicy.getMaxLoanRatio(); |
|
|
|
String name = loanFinOtherPolicy.getBankShortName() + " " + loanFinOtherPolicy.getProductTypeValue() + " " + loanFinOtherPolicy.getPeriod()+ "期 "; |
|
|
|
if(StringUtils.isNotBlank(loanFinOtherPolicyDto.getMaxLoanRatio())){ |
|
|
|
name = name+loanFinOtherPolicy.getMaxLoanRatio()+"%"; |
|
|
|
} |
|
|
|
|
|
|
|
loanFinOtherPolicy.setOtherPolicyName(name); |
|
|
|
loanFinOtherPolicy.setMainPolicySid(loanFinPolicy.getSid()); |
|
|
|
loanFinOtherPolicy.setUseDeptSids(deptSids); |
|
|
@ -166,8 +170,10 @@ public class LoanFinPolicyService extends MybatisBaseService<LoanFinPolicyMapper |
|
|
|
BeanUtil.copyProperties(loanFinOtherPolicyDto, loanFinOtherPolicy); |
|
|
|
loanFinOtherPolicy.setUseDeptSids(deptSids); |
|
|
|
loanFinOtherPolicy.setUseDeptNames(deptNames); |
|
|
|
//其它融名称=资方+产品类别+最高融资比例+期数
|
|
|
|
String name = loanFinOtherPolicy.getBankShortName() + " " + loanFinOtherPolicy.getProductTypeValue() + " " + loanFinOtherPolicy.getPeriod()+ "期 " + loanFinOtherPolicy.getMaxLoanRatio() ; |
|
|
|
String name = loanFinOtherPolicy.getBankShortName() + " " + loanFinOtherPolicy.getProductTypeValue() + " " + loanFinOtherPolicy.getPeriod()+ "期 "; |
|
|
|
if(StringUtils.isNotBlank(loanFinOtherPolicyDto.getMaxLoanRatio())){ |
|
|
|
name = name+loanFinOtherPolicy.getMaxLoanRatio()+"%"; |
|
|
|
} |
|
|
|
loanFinOtherPolicy.setOtherPolicyName(name); |
|
|
|
loanFinOtherPolicyService.updateById(loanFinOtherPolicy); |
|
|
|
} else { |
|
|
@ -182,8 +188,10 @@ public class LoanFinPolicyService extends MybatisBaseService<LoanFinPolicyMapper |
|
|
|
loanFinOtherPolicy.setUseOrgName(useOrgName); |
|
|
|
loanFinOtherPolicy.setCreateOrgName(useOrgName); |
|
|
|
loanFinOtherPolicy.setCreateBySid(dto.getUserSid()); |
|
|
|
//其它融名称=资方+产品类别+最高融资比例+期数
|
|
|
|
String name = loanFinOtherPolicy.getBankShortName() + " " + loanFinOtherPolicy.getProductTypeValue() + " " + loanFinOtherPolicy.getPeriod()+ "期 " + loanFinOtherPolicy.getMaxLoanRatio() ; |
|
|
|
String name = loanFinOtherPolicy.getBankShortName() + " " + loanFinOtherPolicy.getProductTypeValue() + " " + loanFinOtherPolicy.getPeriod()+ "期 "; |
|
|
|
if(StringUtils.isNotBlank(loanFinOtherPolicyDto.getMaxLoanRatio())){ |
|
|
|
name = name+loanFinOtherPolicy.getMaxLoanRatio()+"%"; |
|
|
|
} |
|
|
|
loanFinOtherPolicy.setOtherPolicyName(name); |
|
|
|
loanFinOtherPolicyService.insert(loanFinOtherPolicy); |
|
|
|
} |
|
|
|