|
|
@ -342,6 +342,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
loanSolutions.setOtherPolicyState(0); |
|
|
|
} |
|
|
|
baseMapper.insert(loanSolutions); |
|
|
|
loanSolutionsOtherpolicy.setSolutionsSid(loanSolutions.getSid()); |
|
|
|
loanSolutionsOtherpolicyService.insert(loanSolutionsOtherpolicy); |
|
|
|
//=========================应收明细
|
|
|
|
LoanSolutionsDetail loanSolutionsDetail = new LoanSolutionsDetail(); |
|
|
@ -350,7 +351,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
//融资首付 = 首付金额-其它融贷款金额
|
|
|
|
BigDecimal downPayAmounts = new BigDecimal(BigInteger.ZERO); |
|
|
|
downPayAmounts = downPayAmounts.add(downPayAmount).subtract(otherPolicyAmount1); |
|
|
|
loanSolutionsDetail.setDownPayAmount(downPayAmounts); |
|
|
|
loanSolutionsDetail.setDownPayAmounts(downPayAmounts); |
|
|
|
//贷款保证金
|
|
|
|
String bondAmounts = dto.getBondAmounts(); |
|
|
|
if (StringUtils.isNotBlank(bondAmounts)) { |
|
|
@ -485,6 +486,7 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
} else { |
|
|
|
loanSolutionsDetail.setNominalPrice(BigDecimal.ZERO); |
|
|
|
} |
|
|
|
loanSolutionsDetail.setSolutionsSid(loanSolutions.getSid()); |
|
|
|
loanSolutionsDetailService.insert(loanSolutionsDetail); |
|
|
|
|
|
|
|
} else {//外部金融的只需要录入厂家贴息
|
|
|
|