|
|
@ -630,17 +630,17 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
vo.setBusSalesOrderotherMessageDetailsVo(busSalesOrderotherMessageDetailsVo); |
|
|
|
//=========================金融方案
|
|
|
|
ResultBean<SolutionsDetailsVo> solutionsDetailsVoResultBean = loanSolutionsFeign.selectDetailss(sid); |
|
|
|
if(solutionsDetailsVoResultBean.getData() != null){ |
|
|
|
if (solutionsDetailsVoResultBean.getData() != null) { |
|
|
|
SolutionsDetailsssVo solutionsDetailsssVo = new SolutionsDetailsssVo(); |
|
|
|
BeanUtil.copyProperties(solutionsDetailsVoResultBean.getData(),solutionsDetailsssVo); |
|
|
|
BeanUtil.copyProperties(solutionsDetailsVoResultBean.getData(), solutionsDetailsssVo); |
|
|
|
vo.setSolutionsDetailsssVo(solutionsDetailsssVo); |
|
|
|
} |
|
|
|
if("2".equals(entity.getPayTypeKey())){ |
|
|
|
if ("2".equals(entity.getPayTypeKey())) { |
|
|
|
vo.setFinPlanState(true); |
|
|
|
}else{ |
|
|
|
if("1".equals(entity.getFinancePlan())){ |
|
|
|
} else { |
|
|
|
if ("1".equals(entity.getFinancePlan())) { |
|
|
|
vo.setFinPlanState(false); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
vo.setFinPlanState(true); |
|
|
|
} |
|
|
|
} |
|
|
@ -3352,19 +3352,544 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
vo.setDepositInfo(depositInfo); |
|
|
|
} |
|
|
|
/****************************金融方案***************************************/ |
|
|
|
if("2".equals(busSalesOrder.getPayTypeKey())){ |
|
|
|
if ("2".equals(busSalesOrder.getPayTypeKey())) { |
|
|
|
vo.setFinState(true); |
|
|
|
}else{ |
|
|
|
if("1".equals(busSalesOrder.getFinancePlan())){ |
|
|
|
} else { |
|
|
|
if ("1".equals(busSalesOrder.getFinancePlan())) { |
|
|
|
vo.setFinState(false); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
vo.setFinState(true); |
|
|
|
} |
|
|
|
} |
|
|
|
vo = selectSolution(vo, sid); |
|
|
|
// vo = selectSolution(vo, sid);
|
|
|
|
vo = selectSolutions(vo, sid); |
|
|
|
return rb.success().setData(vo); |
|
|
|
} |
|
|
|
|
|
|
|
private AppOrderDetailsVo selectSolutions(AppOrderDetailsVo appOrderDetailsVo, String sid) { |
|
|
|
ResultBean<SolutionsDetailsVo> solutionsDetailsVoResultBean = loanSolutionsFeign.selectDetailss(sid); |
|
|
|
List<OrderSolutionVo> list = new ArrayList<>(); |
|
|
|
if (solutionsDetailsVoResultBean.getData() != null) { |
|
|
|
SolutionsDetailsVo solutionsDetailsVo = solutionsDetailsVoResultBean.getData(); |
|
|
|
StringBuilder typeValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getTypeKey())) { |
|
|
|
typeValue = typeValue.append("销售类型:" + solutionsDetailsVo.getType()); |
|
|
|
} else { |
|
|
|
typeValue = typeValue.append("销售类型:" + "-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(typeValue.toString(), 1, 0, false)); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getTypeKey()) && "02".equals(solutionsDetailsVo.getTypeKey())) { |
|
|
|
list.add(getValueSpanSize("融资项目", 2, 1, true)); |
|
|
|
//厂家贴息
|
|
|
|
StringBuilder factoryDiscountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getFactoryDiscount())) { |
|
|
|
factoryDiscountValue = factoryDiscountValue.append("厂家贴息:").append(solutionsDetailsVo.getFactoryDiscount()); |
|
|
|
} else { |
|
|
|
factoryDiscountValue = factoryDiscountValue.append("厂家贴息:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(factoryDiscountValue.toString(), 1, 0, false)); |
|
|
|
//厂家贴息用途
|
|
|
|
StringBuilder factoryDiscountUseValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getFactoryDiscountUse())) { |
|
|
|
factoryDiscountUseValue = factoryDiscountUseValue.append("厂家贴息用途:").append(solutionsDetailsVo.getFactoryDiscountUse()); |
|
|
|
} else { |
|
|
|
factoryDiscountUseValue = factoryDiscountUseValue.append("厂家贴息用途:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(factoryDiscountUseValue.toString(), 1, 0, false)); |
|
|
|
list.add(getValueSpanSize("应收明细", 2, 1, true)); |
|
|
|
//服务费
|
|
|
|
StringBuilder serviceAmountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getServiceAmount())) { |
|
|
|
serviceAmountValue = serviceAmountValue.append("服务费:").append(solutionsDetailsVo.getServiceAmount()); |
|
|
|
} else { |
|
|
|
serviceAmountValue = serviceAmountValue.append("服务费:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(serviceAmountValue.toString(), 2, 0, false)); |
|
|
|
} else { |
|
|
|
//是否打包
|
|
|
|
StringBuilder isPackValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getIsPack())) { |
|
|
|
if ("1".equals(solutionsDetailsVo.getIsPack())) { |
|
|
|
isPackValue = isPackValue.append("是否打包:").append("是"); |
|
|
|
} else { |
|
|
|
isPackValue = isPackValue.append("是否打包:").append("否"); |
|
|
|
} |
|
|
|
} else { |
|
|
|
isPackValue = isPackValue.append("是否打包:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(isPackValue.toString(), 1, 0, false)); |
|
|
|
//资方及产品政策
|
|
|
|
StringBuilder polivyNameValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getPolicyName())) { |
|
|
|
polivyNameValue = polivyNameValue.append("资方及产品政策:").append(solutionsDetailsVo.getPolicyName()); |
|
|
|
} else { |
|
|
|
polivyNameValue = polivyNameValue.append("资方及产品政策:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(polivyNameValue.toString(), 2, 0, false)); |
|
|
|
//标题
|
|
|
|
list.add(getValueSpanSize("融资项目", 2, 1, true)); |
|
|
|
//融资项目总额
|
|
|
|
StringBuilder loanTotalValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getLoanTotal())) { |
|
|
|
loanTotalValue = loanTotalValue.append("融资项目总额:").append(solutionsDetailsVo.getLoanTotal()); |
|
|
|
|
|
|
|
} else { |
|
|
|
loanTotalValue = loanTotalValue.append("融资项目总额:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(loanTotalValue.toString(), 2, 0, false)); |
|
|
|
//主车发票价
|
|
|
|
StringBuilder mainVehicleAmountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getMainVehicleAmount())) { |
|
|
|
mainVehicleAmountValue = mainVehicleAmountValue.append("\t").append("主车发票价:").append(solutionsDetailsVo.getMainVehicleAmount()); |
|
|
|
} else { |
|
|
|
mainVehicleAmountValue = mainVehicleAmountValue.append("\t").append("主车发票价:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(mainVehicleAmountValue.toString(), 1, 0, false)); |
|
|
|
//融资票据
|
|
|
|
StringBuilder accessoriesAmountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getAccessoriesAmount())) { |
|
|
|
accessoriesAmountValue = accessoriesAmountValue.append("\t").append("融资票据:").append(solutionsDetailsVo.getAccessoriesAmount()); |
|
|
|
|
|
|
|
} else { |
|
|
|
accessoriesAmountValue = accessoriesAmountValue.append("\t").append("融资票据:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(accessoriesAmountValue.toString(), 1, 0, false)); |
|
|
|
//挂车
|
|
|
|
StringBuilder trailerAmountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getTrailerAmount())) { |
|
|
|
trailerAmountValue = trailerAmountValue.append("\t").append("挂车:").append(solutionsDetailsVo.getTrailerAmount()); |
|
|
|
|
|
|
|
} else { |
|
|
|
trailerAmountValue = trailerAmountValue.append("\t").append("挂车:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(trailerAmountValue.toString(), 1, 0, false)); |
|
|
|
//保险
|
|
|
|
StringBuilder premiumValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getPremium())) { |
|
|
|
premiumValue = premiumValue.append("\t").append("保险:").append(solutionsDetailsVo.getPremium()); |
|
|
|
|
|
|
|
} else { |
|
|
|
premiumValue = premiumValue.append("\t").append("保险:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(premiumValue.toString(), 1, 0, false)); |
|
|
|
//购置税
|
|
|
|
StringBuilder purchaseTaxValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getPurchaseTax())) { |
|
|
|
purchaseTaxValue = purchaseTaxValue.append("\t").append("购置税:").append(solutionsDetailsVo.getPurchaseTax()); |
|
|
|
} else { |
|
|
|
purchaseTaxValue = purchaseTaxValue.append("\t").append("购置税:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(purchaseTaxValue.toString(), 1, 0, false)); |
|
|
|
//车损上浮
|
|
|
|
StringBuilder vehDamageFloatValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getVehDamageFloat())) { |
|
|
|
vehDamageFloatValue = vehDamageFloatValue.append("\t").append("车损上浮:").append(solutionsDetailsVo.getVehDamageFloat()); |
|
|
|
|
|
|
|
} else { |
|
|
|
vehDamageFloatValue = vehDamageFloatValue.append("\t").append("车损上浮:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(vehDamageFloatValue.toString(), 1, 0, false)); |
|
|
|
//首付比例
|
|
|
|
StringBuilder downPayRatioValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getDownPayRatio())) { |
|
|
|
downPayRatioValue = downPayRatioValue.append("首付比例:").append(solutionsDetailsVo.getDownPayRatio()); |
|
|
|
|
|
|
|
} else { |
|
|
|
downPayRatioValue = downPayRatioValue.append("首付比例:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(downPayRatioValue.toString(), 1, 0, false)); |
|
|
|
//首付金额
|
|
|
|
StringBuilder downPayAmountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getDownPayAmount())) { |
|
|
|
downPayAmountValue = downPayAmountValue.append("首付金额:").append(solutionsDetailsVo.getDownPayAmount()); |
|
|
|
|
|
|
|
} else { |
|
|
|
downPayAmountValue = downPayAmountValue.append("首付金额:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(downPayAmountValue.toString(), 1, 0, false)); |
|
|
|
//产品贷款金额
|
|
|
|
StringBuilder loanAmountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getLoanAmount())) { |
|
|
|
loanAmountValue = loanAmountValue.append("产品贷款金额:").append(solutionsDetailsVo.getLoanAmount()); |
|
|
|
|
|
|
|
} else { |
|
|
|
loanAmountValue = loanAmountValue.append("产品贷款金额:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(loanAmountValue.toString(), 1, 0, false)); |
|
|
|
//产品期数
|
|
|
|
StringBuilder loanPeriodValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getLoanPeriod())) { |
|
|
|
loanPeriodValue = loanPeriodValue.append("产品期数:").append(solutionsDetailsVo.getLoanPeriod()); |
|
|
|
|
|
|
|
} else { |
|
|
|
loanPeriodValue = loanPeriodValue.append("产品期数:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(loanPeriodValue.toString(), 1, 0, false)); |
|
|
|
//贷款保证金比例
|
|
|
|
StringBuilder bondRatioValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getBondRatio())) { |
|
|
|
bondRatioValue = bondRatioValue.append("贷款保证金比例:").append(solutionsDetailsVo.getBondRatio()); |
|
|
|
|
|
|
|
} else { |
|
|
|
bondRatioValue = bondRatioValue.append("贷款保证金比例:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(bondRatioValue.toString(), 1, 0, false)); |
|
|
|
//贷款保证金
|
|
|
|
StringBuilder bondAmountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getBondAmount())) { |
|
|
|
bondAmountValue = bondAmountValue.append("贷款保证金:").append(solutionsDetailsVo.getBondAmount()); |
|
|
|
} else { |
|
|
|
bondAmountValue = bondAmountValue.append("贷款保证金:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(bondAmountValue.toString(), 1, 0, false)); |
|
|
|
//厂家贴息
|
|
|
|
StringBuilder factoryDiscountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getFactoryDiscount())) { |
|
|
|
factoryDiscountValue = factoryDiscountValue.append("厂家贴息:").append(solutionsDetailsVo.getFactoryDiscount()); |
|
|
|
} else { |
|
|
|
factoryDiscountValue = factoryDiscountValue.append("厂家贴息:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(factoryDiscountValue.toString(), 1, 0, false)); |
|
|
|
//厂家贴息用途
|
|
|
|
StringBuilder factoryDiscountUseValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getFactoryDiscountUse())) { |
|
|
|
factoryDiscountUseValue = factoryDiscountUseValue.append("厂家贴息用途:").append(solutionsDetailsVo.getFactoryDiscountUse()); |
|
|
|
|
|
|
|
} else { |
|
|
|
factoryDiscountUseValue = factoryDiscountUseValue.append("厂家贴息用途:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(factoryDiscountUseValue.toString(), 1, 0, false)); |
|
|
|
//年利率
|
|
|
|
StringBuilder policyYearRatioValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getPolicyYearRatio())) { |
|
|
|
policyYearRatioValue = policyYearRatioValue.append("年利率:").append(solutionsDetailsVo.getPolicyYearRatio()); |
|
|
|
|
|
|
|
} else { |
|
|
|
policyYearRatioValue = policyYearRatioValue.append("年利率:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(policyYearRatioValue.toString(), 1, 0, false)); |
|
|
|
//利息总额
|
|
|
|
StringBuilder loanInterestValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getLoanInterest())) { |
|
|
|
loanInterestValue = loanInterestValue.append("利息总额:").append(solutionsDetailsVo.getLoanInterest()); |
|
|
|
|
|
|
|
} else { |
|
|
|
loanInterestValue = loanInterestValue.append("利息总额:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(loanInterestValue.toString(), 1, 0, false)); |
|
|
|
//月还金额
|
|
|
|
StringBuilder loanPayMoneyValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getLoanPayMoney())) { |
|
|
|
loanPayMoneyValue = loanPayMoneyValue.append("月还金额:").append(solutionsDetailsVo.getLoanPayMoney()); |
|
|
|
|
|
|
|
} else { |
|
|
|
loanPayMoneyValue = loanPayMoneyValue.append("月还金额:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(loanPayMoneyValue.toString(), 2, 0, false)); |
|
|
|
if (solutionsDetailsVo.isOtherPolicyState()) { |
|
|
|
list.add(getValueSpanSize("其它融", 2, 1, true)); |
|
|
|
//其它融名称
|
|
|
|
StringBuilder otherPolicyNameValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getOtherPolicyName())) { |
|
|
|
otherPolicyNameValue = otherPolicyNameValue.append("其它融名称:").append(solutionsDetailsVo.getOtherPolicyName()); |
|
|
|
|
|
|
|
} else { |
|
|
|
otherPolicyNameValue = otherPolicyNameValue.append("其它融名称:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(otherPolicyNameValue.toString(), 2, 0, false)); |
|
|
|
//贷款金额
|
|
|
|
StringBuilder otherPolicyAmountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getOtherPolicyAmount())) { |
|
|
|
otherPolicyAmountValue = otherPolicyAmountValue.append("贷款金额:").append(solutionsDetailsVo.getOtherPolicyAmount()); |
|
|
|
|
|
|
|
} else { |
|
|
|
otherPolicyAmountValue = otherPolicyAmountValue.append("贷款金额:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(otherPolicyAmountValue.toString(), 1, 0, false)); |
|
|
|
//期数
|
|
|
|
StringBuilder otherPolicyPeriodValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getOtherPolicyPeriod())) { |
|
|
|
otherPolicyPeriodValue = otherPolicyPeriodValue.append("期数:").append(solutionsDetailsVo.getOtherPolicyPeriod()); |
|
|
|
|
|
|
|
} else { |
|
|
|
otherPolicyPeriodValue = otherPolicyPeriodValue.append("期数:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(otherPolicyPeriodValue.toString(), 1, 0, false)); |
|
|
|
|
|
|
|
//年利率
|
|
|
|
StringBuilder otherPolicyYearRatioValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getOtherPolicyYearRatio())) { |
|
|
|
otherPolicyYearRatioValue = otherPolicyYearRatioValue.append("年利率:").append(solutionsDetailsVo.getOtherPolicyYearRatio()); |
|
|
|
} else { |
|
|
|
otherPolicyYearRatioValue = otherPolicyYearRatioValue.append("年利率:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(otherPolicyYearRatioValue.toString(), 1, 0, false)); |
|
|
|
//利息总额
|
|
|
|
StringBuilder otherPolicyInterestValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getOtherPolicyInterest())) { |
|
|
|
otherPolicyInterestValue = otherPolicyInterestValue.append("利息总额:").append(solutionsDetailsVo.getOtherPolicyInterest()); |
|
|
|
} else { |
|
|
|
otherPolicyInterestValue = otherPolicyInterestValue.append("利息总额:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(otherPolicyInterestValue.toString(), 1, 0, false)); |
|
|
|
//月还金额
|
|
|
|
StringBuilder otherPolicyMonthlyRepayValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getOtherPolicyMonthlyRepay())) { |
|
|
|
otherPolicyMonthlyRepayValue = otherPolicyMonthlyRepayValue.append("月还金额:").append(solutionsDetailsVo.getOtherPolicyMonthlyRepay()); |
|
|
|
|
|
|
|
} else { |
|
|
|
otherPolicyMonthlyRepayValue = otherPolicyMonthlyRepayValue.append("月还金额:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(otherPolicyPeriodValue.toString(), 2, 0, false)); |
|
|
|
} |
|
|
|
//方案汇总
|
|
|
|
list.add(getValueSpanSize("方案汇总", 2, 1, true)); |
|
|
|
//融资首付
|
|
|
|
StringBuilder loanDownPayValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getLoanDownPay())) { |
|
|
|
loanDownPayValue = loanDownPayValue.append("融资首付:").append(solutionsDetailsVo.getLoanDownPay()); |
|
|
|
} else { |
|
|
|
loanDownPayValue = loanDownPayValue.append("融资首付:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(loanDownPayValue.toString(), 1, 0, false)); |
|
|
|
//总贷款金额
|
|
|
|
StringBuilder loanAmountTotalValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getLoanAmountTotal())) { |
|
|
|
loanAmountTotalValue = loanAmountTotalValue.append("总贷款金额:").append(solutionsDetailsVo.getLoanAmountTotal()); |
|
|
|
|
|
|
|
} else { |
|
|
|
loanAmountTotalValue = loanAmountTotalValue.append("总贷款金额:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(loanAmountTotalValue.toString(), 1, 0, false)); |
|
|
|
//期数
|
|
|
|
StringBuilder periodValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getPeriod())) { |
|
|
|
periodValue = periodValue.append("期数:").append(solutionsDetailsVo.getPeriod()); |
|
|
|
|
|
|
|
} else { |
|
|
|
periodValue = periodValue.append("期数:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(periodValue.toString(), 1, 0, false)); |
|
|
|
//月还金额
|
|
|
|
StringBuilder monthlyRepayValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getMonthlyRepay())) { |
|
|
|
monthlyRepayValue = monthlyRepayValue.append("月还金额:").append(solutionsDetailsVo.getMonthlyRepay()); |
|
|
|
} else { |
|
|
|
monthlyRepayValue = monthlyRepayValue.append("月还金额:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(monthlyRepayValue.toString(), 1, 0, false)); |
|
|
|
//利息总额
|
|
|
|
StringBuilder interestValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getInterest())) { |
|
|
|
interestValue = interestValue.append("利息总额:").append(solutionsDetailsVo.getInterest()); |
|
|
|
} else { |
|
|
|
interestValue = interestValue.append("利息总额:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(interestValue.toString(), 1, 0, false)); |
|
|
|
//预计首期还款日
|
|
|
|
StringBuilder returnTimeValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getReturnTime())) { |
|
|
|
returnTimeValue = returnTimeValue.append("预计首期还款日:").append(solutionsDetailsVo.getReturnTime()); |
|
|
|
} else { |
|
|
|
returnTimeValue = returnTimeValue.append("预计首期还款日:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(returnTimeValue.toString(), 1, 0, false)); |
|
|
|
//应收明细
|
|
|
|
list.add(getValueSpanSize("应收明细", 2, 1, true)); |
|
|
|
//融资首付
|
|
|
|
StringBuilder downPayAmountsValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getDownPayAmounts())) { |
|
|
|
downPayAmountsValue = downPayAmountsValue.append("融资首付:").append(solutionsDetailsVo.getDownPayAmounts()); |
|
|
|
} else { |
|
|
|
downPayAmountsValue = downPayAmountsValue.append("融资首付:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(downPayAmountsValue.toString(), 1, 0, false)); |
|
|
|
//贷款保证金
|
|
|
|
StringBuilder bondAmountsValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getBondAmounts())) { |
|
|
|
bondAmountsValue = bondAmountsValue.append("贷款保证金:").append(solutionsDetailsVo.getBondAmounts()); |
|
|
|
} else { |
|
|
|
bondAmountsValue = bondAmountsValue.append("贷款保证金:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(bondAmountsValue.toString(), 1, 0, false)); |
|
|
|
//保险保证金
|
|
|
|
StringBuilder depositPremiumValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getDepositPremium())) { |
|
|
|
depositPremiumValue = depositPremiumValue.append("保险保证金:").append(solutionsDetailsVo.getDepositPremium()); |
|
|
|
} else { |
|
|
|
depositPremiumValue = depositPremiumValue.append("保险保证金:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(depositPremiumValue.toString(), 1, 0, false)); |
|
|
|
//落户保证金
|
|
|
|
StringBuilder depositSettleValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getDepositSettle())) { |
|
|
|
depositSettleValue = depositSettleValue.append("落户保证金:").append(solutionsDetailsVo.getDepositSettle()); |
|
|
|
} else { |
|
|
|
depositSettleValue = depositSettleValue.append("落户保证金:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(depositSettleValue.toString(), 1, 0, false)); |
|
|
|
//服务费
|
|
|
|
StringBuilder serviceAmountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getServiceAmount())) { |
|
|
|
serviceAmountValue = serviceAmountValue.append("服务费:").append(solutionsDetailsVo.getServiceAmount()); |
|
|
|
} else { |
|
|
|
serviceAmountValue = serviceAmountValue.append("服务费:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(serviceAmountValue.toString(), 1, 0, false)); |
|
|
|
//代收意外险
|
|
|
|
StringBuilder proxyAccidentPremiumValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getProxyAccidentPremium())) { |
|
|
|
proxyAccidentPremiumValue = proxyAccidentPremiumValue.append("代收意外险:").append(solutionsDetailsVo.getProxyAccidentPremium()); |
|
|
|
} else { |
|
|
|
proxyAccidentPremiumValue = proxyAccidentPremiumValue.append("代收意外险:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(proxyAccidentPremiumValue.toString(), 1, 0, false)); |
|
|
|
//上牌费
|
|
|
|
StringBuilder registerAmountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getRegisterAmount())) { |
|
|
|
registerAmountValue = registerAmountValue.append("上牌费:").append(solutionsDetailsVo.getRegisterAmount()); |
|
|
|
} else { |
|
|
|
registerAmountValue = registerAmountValue.append("上牌费:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(registerAmountValue.toString(), 1, 0, false)); |
|
|
|
//运管费
|
|
|
|
StringBuilder operationAmountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getOperationAmount())) { |
|
|
|
operationAmountValue = operationAmountValue.append("运管费:").append(solutionsDetailsVo.getOperationAmount()); |
|
|
|
} else { |
|
|
|
operationAmountValue = operationAmountValue.append("运管费:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(operationAmountValue.toString(), 1, 0, false)); |
|
|
|
//补车价
|
|
|
|
StringBuilder vehOtherPriceValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getVehOtherPrice())) { |
|
|
|
vehOtherPriceValue = vehOtherPriceValue.append("补车价:").append(solutionsDetailsVo.getVehOtherPrice()); |
|
|
|
} else { |
|
|
|
vehOtherPriceValue = vehOtherPriceValue.append("补车价:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(vehOtherPriceValue.toString(), 1, 0, false)); |
|
|
|
//其它费用
|
|
|
|
StringBuilder otherAmountValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getOtherAmount())) { |
|
|
|
otherAmountValue = otherAmountValue.append("其它费用:").append(solutionsDetailsVo.getOtherAmount()); |
|
|
|
} else { |
|
|
|
otherAmountValue = otherAmountValue.append("其它费用:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(otherAmountValue.toString(), 1, 0, false)); |
|
|
|
//其它费用说明
|
|
|
|
StringBuilder otherAmountRemarkValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getOtherAmountRemark())) { |
|
|
|
otherAmountRemarkValue = otherAmountRemarkValue.append("其它费用说明:").append(solutionsDetailsVo.getOtherAmountRemark()); |
|
|
|
} else { |
|
|
|
otherAmountRemarkValue = otherAmountRemarkValue.append("其它费用说明:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(otherAmountRemarkValue.toString(), 1, 0, false)); |
|
|
|
//办理方式选择
|
|
|
|
StringBuilder dealWayValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getDealWay())) { |
|
|
|
dealWayValue = dealWayValue.append("办理方式选择:").append(solutionsDetailsVo.getDealWay()); |
|
|
|
} else { |
|
|
|
dealWayValue = dealWayValue.append("办理方式选择:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(dealWayValue.toString(), 2, 2, false)); |
|
|
|
//代收首年保险费
|
|
|
|
StringBuilder proxyPremiumValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getProxyPremium())) { |
|
|
|
proxyPremiumValue = proxyPremiumValue.append("代收首年保险费:").append(solutionsDetailsVo.getProxyPremium()); |
|
|
|
} else { |
|
|
|
proxyPremiumValue = proxyPremiumValue.append("代收首年保险费:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(proxyPremiumValue.toString(), 1, 0, false)); |
|
|
|
//代收购置税
|
|
|
|
StringBuilder proxyPurchasetaxValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getProxyPurchasetax())) { |
|
|
|
proxyPurchasetaxValue = proxyPurchasetaxValue.append("代收购置税:").append(solutionsDetailsVo.getProxyPurchasetax()); |
|
|
|
} else { |
|
|
|
proxyPurchasetaxValue = proxyPurchasetaxValue.append("代收购置税:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(proxyPurchasetaxValue.toString(), 1, 0, false)); |
|
|
|
//应收合计
|
|
|
|
StringBuilder receivableTotalValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getReceivableTotal())) { |
|
|
|
receivableTotalValue = receivableTotalValue.append("应收合计:").append(solutionsDetailsVo.getReceivableTotal()); |
|
|
|
} else { |
|
|
|
receivableTotalValue = receivableTotalValue.append("应收合计:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(receivableTotalValue.toString(), 2, 0, true)); |
|
|
|
|
|
|
|
//抵顶费用合计
|
|
|
|
StringBuilder offsetTotalValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getOffsetTotal())) { |
|
|
|
offsetTotalValue = offsetTotalValue.append("抵顶费用合计:").append(solutionsDetailsVo.getOffsetTotal()); |
|
|
|
} else { |
|
|
|
offsetTotalValue = offsetTotalValue.append("抵顶费用合计:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(offsetTotalValue.toString(), 2, 2, false)); |
|
|
|
//抵顶首年保险费
|
|
|
|
StringBuilder offsetPremiumValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getOffsetPremium())) { |
|
|
|
offsetPremiumValue = offsetPremiumValue.append("抵顶首年保险费:").append(solutionsDetailsVo.getOffsetPremium()); |
|
|
|
} else { |
|
|
|
offsetPremiumValue = offsetPremiumValue.append("抵顶首年保险费:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(offsetPremiumValue.toString(), 1, 0, false)); |
|
|
|
//抵顶购置税
|
|
|
|
StringBuilder offsetPurchasetaxValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getOffsetPurchasetax())) { |
|
|
|
offsetPurchasetaxValue = offsetPurchasetaxValue.append("抵顶购置税:").append(solutionsDetailsVo.getOffsetPurchasetax()); |
|
|
|
} else { |
|
|
|
offsetPurchasetaxValue = offsetPurchasetaxValue.append("抵顶购置税:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(offsetPurchasetaxValue.toString(), 1, 0, false)); |
|
|
|
//实收合计
|
|
|
|
StringBuilder realTotalValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getRealTotal())) { |
|
|
|
realTotalValue = realTotalValue.append("实收合计:").append(solutionsDetailsVo.getRealTotal()); |
|
|
|
} else { |
|
|
|
realTotalValue = realTotalValue.append("实收合计:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(realTotalValue.toString(), 2, 0, true)); |
|
|
|
list.add(getValueSpanSize("", 2, 0, false)); |
|
|
|
//车辆总价
|
|
|
|
StringBuilder vehTotalPriceValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getVehTotalPrice())) { |
|
|
|
vehTotalPriceValue = vehTotalPriceValue.append("车辆总价:").append(solutionsDetailsVo.getVehTotalPrice()); |
|
|
|
} else { |
|
|
|
vehTotalPriceValue = vehTotalPriceValue.append("车辆总价:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(vehTotalPriceValue.toString(), 2, 0, false)); |
|
|
|
//名义留购价
|
|
|
|
StringBuilder nominalPriceValue = new StringBuilder(); |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getNominalPrice())) { |
|
|
|
nominalPriceValue = nominalPriceValue.append("名义留购价:").append(solutionsDetailsVo.getNominalPrice()); |
|
|
|
} else { |
|
|
|
nominalPriceValue = nominalPriceValue.append("名义留购价:").append("-"); |
|
|
|
} |
|
|
|
list.add(getValueSpanSize(nominalPriceValue.toString(), 2, 0, false)); |
|
|
|
} |
|
|
|
} |
|
|
|
appOrderDetailsVo.setFinanceForms(list); |
|
|
|
return appOrderDetailsVo; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 金融方案的拼接 |
|
|
|
* |
|
|
|
* @param value 拼接内容 |
|
|
|
* @param spanSize 格数 |
|
|
|
* @param type 类型:0 最普通的 1 标题的 2是 加上划线的 |
|
|
|
* @param bold 是否加粗:true是,false否 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private OrderSolutionVo getValueSpanSize(String value, Integer spanSize, Integer type, boolean bold) { |
|
|
|
OrderSolutionVo orderSolutionVo = new OrderSolutionVo(); |
|
|
|
orderSolutionVo.setValue(value); |
|
|
|
orderSolutionVo.setSpanSize(spanSize); |
|
|
|
orderSolutionVo.setType(type); |
|
|
|
orderSolutionVo.setBold(bold); |
|
|
|
return orderSolutionVo; |
|
|
|
} |
|
|
|
|
|
|
|
public AppOrderDetailsVo selectSolution(AppOrderDetailsVo appOrderDetailsVo, String sid) { |
|
|
|
ResultBean<SolutionsDetailsVo> solutionsDetailsVoResultBean = loanSolutionsFeign.selectDetailss(sid); |
|
|
|
if (solutionsDetailsVoResultBean.getData() != null) { |
|
|
@ -3570,9 +4095,9 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
otherLoanSolutions = otherLoanSolutions.append("、").append("月还金额:").append("-"); |
|
|
|
} |
|
|
|
//利息总额
|
|
|
|
if(StringUtils.isNotBlank(solutionsDetailsVo.getOtherPolicyInterest())){ |
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVo.getOtherPolicyInterest())) { |
|
|
|
otherLoanSolutions = otherLoanSolutions.append("、").append("利息总额:").append(solutionsDetailsVo.getOtherPolicyInterest()); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
otherLoanSolutions = otherLoanSolutions.append("、").append("利息总额:").append("-"); |
|
|
|
} |
|
|
|
//年利率
|
|
|
@ -4895,10 +5420,10 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
record.setPrintOrderBtn(false); |
|
|
|
} |
|
|
|
//根据流程定义id以及实例id查询结束时间
|
|
|
|
ResultBean<FlowSelectVo> flowSelectVoResultBean = flowableFeign.selectFlows(record.getProcDefId(),record.getProcInstId()); |
|
|
|
if(flowSelectVoResultBean.getData() != null){ |
|
|
|
ResultBean<FlowSelectVo> flowSelectVoResultBean = flowableFeign.selectFlows(record.getProcDefId(), record.getProcInstId()); |
|
|
|
if (flowSelectVoResultBean.getData() != null) { |
|
|
|
FlowSelectVo flowSelectVo = flowSelectVoResultBean.getData(); |
|
|
|
if(StringUtils.isNotBlank(flowSelectVo.getEndTime())){ |
|
|
|
if (StringUtils.isNotBlank(flowSelectVo.getEndTime())) { |
|
|
|
record.setEndTime(flowSelectVo.getEndTime()); |
|
|
|
} |
|
|
|
} |
|
|
@ -4957,9 +5482,9 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean<String> selectTemporaryNo(String vehSid,String contractNo) { |
|
|
|
public ResultBean<String> selectTemporaryNo(String vehSid, String contractNo) { |
|
|
|
ResultBean<String> rb = ResultBean.fireFail(); |
|
|
|
BusSalesOrdeVo busSalesOrdeVo = baseMapper.selectTemporaryNo(vehSid,contractNo); |
|
|
|
BusSalesOrdeVo busSalesOrdeVo = baseMapper.selectTemporaryNo(vehSid, contractNo); |
|
|
|
if (busSalesOrdeVo != null) { |
|
|
|
contractNo = busSalesOrdeVo.getContractNo(); |
|
|
|
if (StringUtils.isBlank(contractNo)) { |
|
|
@ -5096,7 +5621,7 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
busSalesOrderSourceLCVo.setSpsj(processCommentVo.get("time").toString()); |
|
|
|
busSalesOrderSourceLCVos.add(busSalesOrderSourceLCVo); |
|
|
|
List<String> fileList = (List) processCommentVo.get("fileList"); |
|
|
|
if (fileList.size() > 0){ |
|
|
|
if (fileList.size() > 0) { |
|
|
|
for (String s : fileList) { |
|
|
|
imgList.add(s); |
|
|
|
} |
|
|
@ -5104,19 +5629,19 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
} |
|
|
|
} |
|
|
|
List<Message> messages = messageFeign.selectByBusinessSid(busSalesOrder.getSid()).getData(); |
|
|
|
if (messages.size() > 0){ |
|
|
|
if (messages.size() > 0) { |
|
|
|
for (Message message : messages) { |
|
|
|
BusSalesOrderSourceLCVo busSalesOrderSourceLCVo = new BusSalesOrderSourceLCVo(); |
|
|
|
String receiverNames = ""; |
|
|
|
List<MessageList> messageLists = messageListFeign.fetchByMainSid(message.getSid()).getData(); |
|
|
|
if (messageLists.size() > 0){ |
|
|
|
if (messageLists.size() > 0) { |
|
|
|
for (MessageList messageList : messageLists) { |
|
|
|
receiverNames = receiverNames + messageList.getReceiverName() + ","; |
|
|
|
} |
|
|
|
} |
|
|
|
busSalesOrderSourceLCVo.setName("系统"); |
|
|
|
busSalesOrderSourceLCVo.setComment("抄送 " + receiverNames.substring(0,receiverNames.lastIndexOf(","))); |
|
|
|
busSalesOrderSourceLCVo.setSpsj(DateUtil.format(message.getCreateTime(),"yyyy-MM-dd HH:mm:ss")); |
|
|
|
busSalesOrderSourceLCVo.setComment("抄送 " + receiverNames.substring(0, receiverNames.lastIndexOf(","))); |
|
|
|
busSalesOrderSourceLCVo.setSpsj(DateUtil.format(message.getCreateTime(), "yyyy-MM-dd HH:mm:ss")); |
|
|
|
busSalesOrderSourceLCVos.add(busSalesOrderSourceLCVo); |
|
|
|
} |
|
|
|
} |
|
|
@ -5147,19 +5672,19 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
dataMap.put("conPrice", commonContract.getContractAmount()); |
|
|
|
//是否公司入保
|
|
|
|
BusSalesOrderInsuranceDetailsVo busSalesOrderInsuranceDetailsVo = busSalesOrderInsuranceService.selectOrderInsuranceStateBySid(busSalesOrder.getSid()); |
|
|
|
if (busSalesOrder.getIsInsurance().equals("0")){ |
|
|
|
if (busSalesOrder.getIsInsurance().equals("0")) { |
|
|
|
dataMap.put("isrb", "否," + busSalesOrderInsuranceDetailsVo.getRemarks() + "。"); |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
|
|
|
|
dataMap.put("isrb", "是," + busSalesOrderInsuranceDetailsVo.getInsuranceName() + "," + "单台预估金额" + busSalesOrderInsuranceDetailsVo.getInsuranceCarMoney() + "元," + "入保期数" + busSalesOrderInsuranceDetailsVo.getInsuranceNum() + "。"); |
|
|
|
} |
|
|
|
//是否赠送客户物品
|
|
|
|
List<AppOrderDiscountListVo> appOrderDiscountListVos = busSalesOrderDiscountService.selectDiscount(busSalesOrder.getSid()); |
|
|
|
if (appOrderDiscountListVos.size() == 0){ |
|
|
|
if (appOrderDiscountListVos.size() == 0) { |
|
|
|
dataMap.put("iszs", "否"); |
|
|
|
//赠送客户物品
|
|
|
|
dataMap.put("zskhwp", "无"); |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
dataMap.put("iszs", "是"); |
|
|
|
//赠送客户物品
|
|
|
|
String zskhwp = ""; |
|
|
@ -5170,13 +5695,13 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
} |
|
|
|
//是否返利
|
|
|
|
BusSalesOrderSubmit busSalesOrderSubmit = busSalesOrderSubmitService.selectBySaleOrderSid(busSalesOrder.getSid()); |
|
|
|
if (busSalesOrderSubmit != null){ |
|
|
|
if (StringUtils.isNotBlank(busSalesOrderSubmit.getDistributorName()) || StringUtils.isNotBlank(busSalesOrderSubmit.getDistributorNameTwo())){ |
|
|
|
if (busSalesOrderSubmit != null) { |
|
|
|
if (StringUtils.isNotBlank(busSalesOrderSubmit.getDistributorName()) || StringUtils.isNotBlank(busSalesOrderSubmit.getDistributorNameTwo())) { |
|
|
|
dataMap.put("isfl", "是"); |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
dataMap.put("isfl", "否"); |
|
|
|
} |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
dataMap.put("isfl", "否"); |
|
|
|
} |
|
|
|
//返利备案表
|
|
|
@ -5184,7 +5709,7 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
//价格信息中获取数量
|
|
|
|
Integer quantity = busSalesOrderPrice.getQuantity(); |
|
|
|
//中介人1
|
|
|
|
if (StringUtils.isNotBlank(busSalesOrderSubmit.getDistributorName())){ |
|
|
|
if (StringUtils.isNotBlank(busSalesOrderSubmit.getDistributorName())) { |
|
|
|
BusSalesOrderFL busSalesOrderFL = new BusSalesOrderFL(); |
|
|
|
//中介人1返利总金额
|
|
|
|
busSalesOrderFL.setFlPrice(busSalesOrderSubmit.getDistributorPrice().multiply(new BigDecimal(quantity)).toString()); |
|
|
@ -5199,7 +5724,7 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
//中介人1开户行
|
|
|
|
busSalesOrderFL.setKhh(baseMiddlemanDetailsOneVo.getBankName()); |
|
|
|
busSalesOrderFLS.add(busSalesOrderFL); |
|
|
|
}else if (StringUtils.isNotBlank(busSalesOrderSubmit.getDistributorNameTwo())){//中介人2
|
|
|
|
} else if (StringUtils.isNotBlank(busSalesOrderSubmit.getDistributorNameTwo())) {//中介人2
|
|
|
|
BusSalesOrderFL busSalesOrderFL = new BusSalesOrderFL(); |
|
|
|
//中介人2返利总金额
|
|
|
|
busSalesOrderFL.setFlPrice(busSalesOrderSubmit.getDistributorPriceTwo().multiply(new BigDecimal(quantity)).toString()); |
|
|
@ -5217,11 +5742,11 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
} |
|
|
|
dataMap.put("flList", busSalesOrderFLS); |
|
|
|
//是否显示金融信息备案
|
|
|
|
if ("2".equals(busSalesOrder.getPayTypeKey())){ |
|
|
|
if ("2".equals(busSalesOrder.getPayTypeKey())) { |
|
|
|
dataMap.put("isXS", "否"); |
|
|
|
}else if ("1".equals(busSalesOrder.getPayTypeKey()) && "1".equals(busSalesOrder.getFinancePlan())){ |
|
|
|
} else if ("1".equals(busSalesOrder.getPayTypeKey()) && "1".equals(busSalesOrder.getFinancePlan())) { |
|
|
|
dataMap.put("isXS", "否"); |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
dataMap.put("isXS", "是"); |
|
|
|
} |
|
|
|
//金融信息备案
|
|
|
@ -5239,9 +5764,9 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
//下载人
|
|
|
|
dataMap.put("downName", userName); |
|
|
|
//下载时间
|
|
|
|
dataMap.put("downTime", DateUtil.format(new Date(),"yyyy-MM-dd HH:mm:ss")); |
|
|
|
dataMap.put("downTime", DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss")); |
|
|
|
//获取图片路径
|
|
|
|
if (StringUtils.isNotBlank(busSalesOrder.getImagesFile())){ |
|
|
|
if (StringUtils.isNotBlank(busSalesOrder.getImagesFile())) { |
|
|
|
String notesImage = busSalesOrder.getImagesFile(); |
|
|
|
String[] notesImages = notesImage.split(","); |
|
|
|
for (String image : notesImages) { |
|
|
@ -5255,7 +5780,7 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (imgList.size() > 0){ |
|
|
|
if (imgList.size() > 0) { |
|
|
|
for (String image : imgList) { |
|
|
|
if (image.contains(fileUploadComponent.getUrlPrefix())) { |
|
|
|
image = image.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|