|
|
@ -1677,6 +1677,35 @@ public class FinBillApplicationService extends MybatisBaseService<FinBillApplica |
|
|
|
if (data != null) { |
|
|
|
vo.setShowValueCustomer(!data.getSingleFinalPrice().equals(entity.getOneBillMoney())); |
|
|
|
} |
|
|
|
//生成的合同下载地址
|
|
|
|
String allDownloadUrl = ""; |
|
|
|
if(StringUtils.isNotBlank(entity.getFileUrl())){ |
|
|
|
allDownloadUrl = docPdfComponent.getPrefixTemplateUrl()+entity.getFileUrl(); |
|
|
|
vo.setAllDownloadUrl(allDownloadUrl); |
|
|
|
} |
|
|
|
int contractBtns = 0; |
|
|
|
//根据合同号查询销售订单数据
|
|
|
|
busSalesOrder = baseMapper.selectByContract(contractNo); |
|
|
|
SolutionsDetailsVo loanSolutions = loanSolutionsFeign.selectDetailss(busSalesOrder.getSid()).getData(); |
|
|
|
BusSalesOrderModel busSalesOrderModel = baseMapper.selectByOrderSid(busSalesOrder.getSid()); |
|
|
|
BusSalesOrderPrice busSalesOrderPrice = baseMapper.selectByPrices(busSalesOrder.getSid()); |
|
|
|
if ("1".equals(busSalesOrder.getPayTypeKey())) {//全款
|
|
|
|
contractBtns = 1; |
|
|
|
}else{ |
|
|
|
if(StringUtils.isNotBlank(loanSolutions.getTypeKey())){ |
|
|
|
contractBtns = 2; |
|
|
|
} |
|
|
|
} |
|
|
|
vo.setContractBtns(contractBtns); |
|
|
|
//销售订单开票sid
|
|
|
|
if(StringUtils.isNotBlank(busSalesOrder.getAffiliatedCompanySid())){ |
|
|
|
vo.setOrderInvoiceSid(busSalesOrder.getAffiliatedCompanySid()); |
|
|
|
} |
|
|
|
if(loanSolutions != null){ |
|
|
|
if(StringUtils.isNotBlank(loanSolutions.getMainVehicleAmount())){ |
|
|
|
vo.setOrderInvoicePrice(loanSolutions.getMainVehicleAmount()); |
|
|
|
} |
|
|
|
} |
|
|
|
return vo; |
|
|
|
} |
|
|
|
|
|
|
|