|
|
@ -146,6 +146,14 @@ public class LoanFinPolicyService extends MybatisBaseService<LoanFinPolicyMapper |
|
|
|
loanFinOtherPolicy.setCreateOrgSid(useOrgSid); |
|
|
|
loanFinOtherPolicy.setUseOrgName(useOrgName); |
|
|
|
loanFinOtherPolicy.setCreateOrgName(useOrgName); |
|
|
|
if (!vehTypeKeyList.isEmpty()) { |
|
|
|
String vehTypeKey = String.join(",", vehTypeKeyList); |
|
|
|
loanFinOtherPolicy.setVehTypeKey(vehTypeKey); |
|
|
|
} |
|
|
|
if (!vehTypeValueList.isEmpty()) { |
|
|
|
String vehTypeValue = String.join(",", vehTypeValueList); |
|
|
|
loanFinOtherPolicy.setVehTypeValue(vehTypeValue); |
|
|
|
} |
|
|
|
loanFinOtherPolicyService.insert(loanFinOtherPolicy); |
|
|
|
} else { |
|
|
|
loanFinPolicy.setIsOtherProduct(0); |
|
|
@ -202,6 +210,18 @@ public class LoanFinPolicyService extends MybatisBaseService<LoanFinPolicyMapper |
|
|
|
name = name + loanFinOtherPolicy.getMaxLoanRatio() + "%"; |
|
|
|
} |
|
|
|
loanFinOtherPolicy.setOtherPolicyName(name); |
|
|
|
if (!vehTypeKeyList.isEmpty()) { |
|
|
|
String vehTypeKey = String.join(",", vehTypeKeyList); |
|
|
|
loanFinOtherPolicy.setVehTypeKey(vehTypeKey); |
|
|
|
}else{ |
|
|
|
loanFinOtherPolicy.setVehTypeKey(""); |
|
|
|
} |
|
|
|
if (!vehTypeValueList.isEmpty()) { |
|
|
|
String vehTypeValue = String.join(",", vehTypeValueList); |
|
|
|
loanFinOtherPolicy.setVehTypeValue(vehTypeValue); |
|
|
|
}else{ |
|
|
|
loanFinOtherPolicy.setVehTypeValue(""); |
|
|
|
} |
|
|
|
loanFinOtherPolicyService.updateById(loanFinOtherPolicy); |
|
|
|
} else { |
|
|
|
loanFinOtherPolicy = new LoanFinOtherPolicy(); |
|
|
@ -220,6 +240,14 @@ public class LoanFinPolicyService extends MybatisBaseService<LoanFinPolicyMapper |
|
|
|
name = name + loanFinOtherPolicy.getMaxLoanRatio() + "%"; |
|
|
|
} |
|
|
|
loanFinOtherPolicy.setOtherPolicyName(name); |
|
|
|
if (!vehTypeKeyList.isEmpty()) { |
|
|
|
String vehTypeKey = String.join(",", vehTypeKeyList); |
|
|
|
loanFinOtherPolicy.setVehTypeKey(vehTypeKey); |
|
|
|
} |
|
|
|
if (!vehTypeValueList.isEmpty()) { |
|
|
|
String vehTypeValue = String.join(",", vehTypeValueList); |
|
|
|
loanFinOtherPolicy.setVehTypeValue(vehTypeValue); |
|
|
|
} |
|
|
|
loanFinOtherPolicyService.insert(loanFinOtherPolicy); |
|
|
|
} |
|
|
|
} |
|
|
|