|
|
@ -1430,6 +1430,11 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
if (downPayAmountsRatio.compareTo(downPayRatioLeast) < 0) { |
|
|
|
return rb.setMsg("实际首付比例不能低于产品政策中的最低首付比例"); |
|
|
|
} |
|
|
|
BigDecimal ratio = loanFinPolicy.getDownPayRatio(); |
|
|
|
BigDecimal decimal = new BigDecimal(query.getDownPayRatio()); |
|
|
|
if (decimal.compareTo(ratio) < 0) { |
|
|
|
return rb.setMsg("首付比例不能低于产品政策中的首付比例"); |
|
|
|
} |
|
|
|
//总贷款金额
|
|
|
|
calculateVo.setLoanAmountTotal(loanAmountTotal.setScale(0, BigDecimal.ROUND_HALF_UP).toString()); |
|
|
|
//期数
|
|
|
@ -1658,9 +1663,9 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
solutionssVo.setSzPrice(busSalesOrdersVo.getSzPrice()); |
|
|
|
solutionssVo.setFinalPrice(busSalesOrdersVo.getFinalPrice()); |
|
|
|
BusSalesOrderModel busSalesOrderModel = busSalesOrdersVo.getBusSalesOrderModel(); |
|
|
|
if(busSalesOrderModel != null){ |
|
|
|
if (busSalesOrderModel != null) { |
|
|
|
solutionssVo.setModelSid(busSalesOrderModel.getModelSid()); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
return rb.setMsg("请先录入车型"); |
|
|
|
} |
|
|
|
if (busSalesOrdersVo.getBusSalesOrder() != null) { |
|
|
|