|
|
@ -769,30 +769,39 @@ public class BusArrearsCarryVehicleApplyService extends MybatisBaseService<BusAr |
|
|
|
//生成总经理担保书
|
|
|
|
zjlLetterDownloadUrl = zjlLetterDownloadUrl(dto, map); |
|
|
|
//生成股东会对外担保决议
|
|
|
|
gdLetterDownloadUrl = gdLetterDownloadUrl();*/ |
|
|
|
gdLetterDownloadUrl = gdLetterDownloadUrl(dto, map);*/ |
|
|
|
PdfVo pdfVo = new PdfVo(); |
|
|
|
pdfVo.setType(BuscenterFileEnum.CARCONTRACT_DOWNLOADURL.getAttachType()); |
|
|
|
pdfVo.setName(BuscenterFileEnum.CARCONTRACT_DOWNLOADURL.getMark()); |
|
|
|
pdfVo.setDownUrl(carContractDownloadUrl); |
|
|
|
list.add(pdfVo); |
|
|
|
|
|
|
|
pdfVo = new PdfVo(); |
|
|
|
pdfVo.setType(BuscenterFileEnum.GDLETTER_DOWNLOADURL.getAttachType()); |
|
|
|
pdfVo.setName(BuscenterFileEnum.GDLETTER_DOWNLOADURL.getMark()); |
|
|
|
pdfVo.setDownUrl(gdLetterDownloadUrl); |
|
|
|
list.add(pdfVo); |
|
|
|
|
|
|
|
pdfVo = new PdfVo(); |
|
|
|
pdfVo.setType(BuscenterFileEnum.ZJLLETTER_DOWNLOADURL.getAttachType()); |
|
|
|
pdfVo.setName(BuscenterFileEnum.ZJLLETTER_DOWNLOADURL.getMark()); |
|
|
|
pdfVo.setDownUrl(zjlLetterDownloadUrl); |
|
|
|
list.add(pdfVo); |
|
|
|
|
|
|
|
pdfVo = new PdfVo(); |
|
|
|
pdfVo.setType(BuscenterFileEnum.GUARANTEELETTER_DOWNLOADURL.getAttachType()); |
|
|
|
pdfVo.setName(BuscenterFileEnum.GUARANTEELETTER_DOWNLOADURL.getMark()); |
|
|
|
pdfVo.setDownUrl(guaranteeLetterDownloadUrl); |
|
|
|
list.add(pdfVo); |
|
|
|
if(StringUtils.isNotBlank(carContractDownloadUrl)){ |
|
|
|
pdfVo.setType(BuscenterFileEnum.CARCONTRACT_DOWNLOADURL.getAttachType()); |
|
|
|
pdfVo.setName(BuscenterFileEnum.CARCONTRACT_DOWNLOADURL.getMark()); |
|
|
|
pdfVo.setDownUrl(carContractDownloadUrl); |
|
|
|
list.add(pdfVo); |
|
|
|
} |
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(gdLetterDownloadUrl)){ |
|
|
|
pdfVo = new PdfVo(); |
|
|
|
pdfVo.setType(BuscenterFileEnum.GDLETTER_DOWNLOADURL.getAttachType()); |
|
|
|
pdfVo.setName(BuscenterFileEnum.GDLETTER_DOWNLOADURL.getMark()); |
|
|
|
pdfVo.setDownUrl(gdLetterDownloadUrl); |
|
|
|
list.add(pdfVo); |
|
|
|
} |
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(zjlLetterDownloadUrl)){ |
|
|
|
pdfVo = new PdfVo(); |
|
|
|
pdfVo.setType(BuscenterFileEnum.ZJLLETTER_DOWNLOADURL.getAttachType()); |
|
|
|
pdfVo.setName(BuscenterFileEnum.ZJLLETTER_DOWNLOADURL.getMark()); |
|
|
|
pdfVo.setDownUrl(zjlLetterDownloadUrl); |
|
|
|
list.add(pdfVo); |
|
|
|
} |
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(guaranteeLetterDownloadUrl)){ |
|
|
|
pdfVo = new PdfVo(); |
|
|
|
pdfVo.setType(BuscenterFileEnum.GUARANTEELETTER_DOWNLOADURL.getAttachType()); |
|
|
|
pdfVo.setName(BuscenterFileEnum.GUARANTEELETTER_DOWNLOADURL.getMark()); |
|
|
|
pdfVo.setDownUrl(guaranteeLetterDownloadUrl); |
|
|
|
list.add(pdfVo); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
@ -838,28 +847,36 @@ public class BusArrearsCarryVehicleApplyService extends MybatisBaseService<BusAr |
|
|
|
} |
|
|
|
//新车买卖合同(欠款)
|
|
|
|
PdfVo pdfVo = new PdfVo(); |
|
|
|
pdfVo.setType(BuscenterFileEnum.CARCONTRACT_DOWNLOADURL.getAttachType()); |
|
|
|
pdfVo.setName(BuscenterFileEnum.CARCONTRACT_DOWNLOADURL.getMark()); |
|
|
|
pdfVo.setDownUrl(carContractDownloadUrl); |
|
|
|
list.add(pdfVo); |
|
|
|
//股东会对外担保决议
|
|
|
|
pdfVo = new PdfVo(); |
|
|
|
pdfVo.setType(BuscenterFileEnum.GDLETTER_DOWNLOADURL.getAttachType()); |
|
|
|
pdfVo.setName(BuscenterFileEnum.GDLETTER_DOWNLOADURL.getMark()); |
|
|
|
pdfVo.setDownUrl(gdLetterDownloadUrl); |
|
|
|
list.add(pdfVo); |
|
|
|
//总经理担保书
|
|
|
|
pdfVo = new PdfVo(); |
|
|
|
pdfVo.setType(BuscenterFileEnum.ZJLLETTER_DOWNLOADURL.getAttachType()); |
|
|
|
pdfVo.setName(BuscenterFileEnum.ZJLLETTER_DOWNLOADURL.getMark()); |
|
|
|
pdfVo.setDownUrl(zjlLetterDownloadUrl); |
|
|
|
list.add(pdfVo); |
|
|
|
//欠款提车担保承诺书
|
|
|
|
pdfVo = new PdfVo(); |
|
|
|
pdfVo.setType(BuscenterFileEnum.GUARANTEELETTER_DOWNLOADURL.getAttachType()); |
|
|
|
pdfVo.setName(BuscenterFileEnum.GUARANTEELETTER_DOWNLOADURL.getMark()); |
|
|
|
pdfVo.setDownUrl(guaranteeLetterDownloadUrl); |
|
|
|
list.add(pdfVo); |
|
|
|
if (StringUtils.isNotBlank(carContractDownloadUrl)) { |
|
|
|
pdfVo.setType(BuscenterFileEnum.CARCONTRACT_DOWNLOADURL.getAttachType()); |
|
|
|
pdfVo.setName(BuscenterFileEnum.CARCONTRACT_DOWNLOADURL.getMark()); |
|
|
|
pdfVo.setDownUrl(carContractDownloadUrl); |
|
|
|
list.add(pdfVo); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(gdLetterDownloadUrl)) { |
|
|
|
//股东会对外担保决议
|
|
|
|
pdfVo = new PdfVo(); |
|
|
|
pdfVo.setType(BuscenterFileEnum.GDLETTER_DOWNLOADURL.getAttachType()); |
|
|
|
pdfVo.setName(BuscenterFileEnum.GDLETTER_DOWNLOADURL.getMark()); |
|
|
|
pdfVo.setDownUrl(gdLetterDownloadUrl); |
|
|
|
list.add(pdfVo); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(zjlLetterDownloadUrl)){ |
|
|
|
//总经理担保书
|
|
|
|
pdfVo = new PdfVo(); |
|
|
|
pdfVo.setType(BuscenterFileEnum.ZJLLETTER_DOWNLOADURL.getAttachType()); |
|
|
|
pdfVo.setName(BuscenterFileEnum.ZJLLETTER_DOWNLOADURL.getMark()); |
|
|
|
pdfVo.setDownUrl(zjlLetterDownloadUrl); |
|
|
|
list.add(pdfVo); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(guaranteeLetterDownloadUrl)){ |
|
|
|
//欠款提车担保承诺书
|
|
|
|
pdfVo = new PdfVo(); |
|
|
|
pdfVo.setType(BuscenterFileEnum.GUARANTEELETTER_DOWNLOADURL.getAttachType()); |
|
|
|
pdfVo.setName(BuscenterFileEnum.GUARANTEELETTER_DOWNLOADURL.getMark()); |
|
|
|
pdfVo.setDownUrl(guaranteeLetterDownloadUrl); |
|
|
|
list.add(pdfVo); |
|
|
|
} |
|
|
|
} |
|
|
|
createPdfVo.setChange(isChange); |
|
|
|
createPdfVo.setFileList(list); |
|
|
@ -934,10 +951,9 @@ public class BusArrearsCarryVehicleApplyService extends MybatisBaseService<BusAr |
|
|
|
* |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public String gdLetterDownloadUrl() { |
|
|
|
public String gdLetterDownloadUrl(AppArrearsCarryDto dto, Map<String, Object> map) { |
|
|
|
String url = ""; |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
String ftl = "gd"; |
|
|
|
String ftl = "gd2"; |
|
|
|
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + ftl + ".ftl"); |
|
|
|
//生成word文件名
|
|
|
|
String targetPath = docPdfComponent.getUploadTemplateUrl(); |
|
|
@ -994,6 +1010,8 @@ public class BusArrearsCarryVehicleApplyService extends MybatisBaseService<BusAr |
|
|
|
//购买车辆
|
|
|
|
map.put("num", vinList.size()); |
|
|
|
map.put("contractNo", dto.getContractId()); |
|
|
|
map.put("contractName","《车辆买卖合同》"); |
|
|
|
map.put("customerName",name); |
|
|
|
|
|
|
|
String commitmentMoneyDate = dto.getCommitmentMoneyDate(); |
|
|
|
List<String> stringLists = Arrays.asList(commitmentMoneyDate.split("-")); |
|
|
@ -1232,9 +1250,9 @@ public class BusArrearsCarryVehicleApplyService extends MybatisBaseService<BusAr |
|
|
|
} else { |
|
|
|
map.put("wMoney", wMoneyAll.toString()); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(subscribtAllResultBean.getData())){ |
|
|
|
if (StringUtils.isNotBlank(subscribtAllResultBean.getData())) { |
|
|
|
map.put("DyMoney", TransformMoney.transform(TransformMoney.getDecimalStr(Double.valueOf(subscribtAllResultBean.getData()).doubleValue()))); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
map.put("DyMoney", TransformMoney.transform(TransformMoney.getDecimalStr(Double.valueOf(String.valueOf(BigDecimal.ZERO)).doubleValue()))); |
|
|
|
} |
|
|
|
|
|
|
@ -1252,6 +1270,7 @@ public class BusArrearsCarryVehicleApplyService extends MybatisBaseService<BusAr |
|
|
|
ResultBean<FinCompanyInvoicingDetailsVo> invoicingDetailsVoResultBean = finCompanyInvoicingFeign.getDetailsByUseOrgAndSystem(appOrderDetailsVo.getUseOrgSid(), appOrderDetailsVo.getPurchaseSystemSid()); |
|
|
|
if (invoicingDetailsVoResultBean.getData() != null) { |
|
|
|
map.put("orgName", invoicingDetailsVoResultBean.getData().getName()); |
|
|
|
map.put("useOrgName",invoicingDetailsVoResultBean.getData().getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
map.put("mobile", appOrderDetailsVo.getPhone()); |
|
|
@ -1845,7 +1864,7 @@ public class BusArrearsCarryVehicleApplyService extends MybatisBaseService<BusAr |
|
|
|
busDeliveredDto.setContractNo(busArrearsCarryVehicleApply.getContractNo()); |
|
|
|
busDeliveredDto.setName(busArrearsCarryVehicleApply.getCustomerName()); |
|
|
|
AppOrderDetailsVo busSalesOrderDetailsVo = busSalesOrderService.getSaleOrderDetailsByContractNo(busArrearsCarryVehicleApply.getContractNo()).getData(); |
|
|
|
if(busSalesOrderDetailsVo != null){ |
|
|
|
if (busSalesOrderDetailsVo != null) { |
|
|
|
AppOrderPriceInfoVo priceInfoVo = busSalesOrderDetailsVo.getPriceInfo(); |
|
|
|
busDeliveredDto.setPrice(priceInfoVo.getSingleFinalPrice()); |
|
|
|
AppOrderModelInfoVo appOrderModelInfoVo = busSalesOrderDetailsVo.getModelInfo(); |
|
|
@ -1858,7 +1877,7 @@ public class BusArrearsCarryVehicleApplyService extends MybatisBaseService<BusAr |
|
|
|
busDeliveredDto.setUseOrgName(sysOrganizationVoResultBean.getData().getName()); |
|
|
|
} |
|
|
|
//根据合同和车辆sid查询销售订单车辆sid
|
|
|
|
BusSalesOrderVehicle busSaleOrderVehicle = busSalesOrderVehicleService.selectByNoAndVinSid(busArrearsCarryVehicleApply.getContractNo(),vehicleDetailsVo.getVinSid()); |
|
|
|
BusSalesOrderVehicle busSaleOrderVehicle = busSalesOrderVehicleService.selectByNoAndVinSid(busArrearsCarryVehicleApply.getContractNo(), vehicleDetailsVo.getVinSid()); |
|
|
|
busDeliveredDto.setBusVinSid(busSaleOrderVehicle.getSid()); |
|
|
|
busDeliveredService.saveOrUpdateDto(busDeliveredDto); |
|
|
|
} |
|
|
@ -2269,13 +2288,13 @@ public class BusArrearsCarryVehicleApplyService extends MybatisBaseService<BusAr |
|
|
|
busArrearsCarryVehicleApply.setZjlLetterFile(zjlLetterImages); |
|
|
|
} |
|
|
|
} |
|
|
|
if("Activity_0ynxtyz".equals(query.getTaskDefKey())){ |
|
|
|
if ("Activity_0ynxtyz".equals(query.getTaskDefKey())) { |
|
|
|
//销售经理信审截图
|
|
|
|
if (fileList.isEmpty()) { |
|
|
|
return rb.setMsg("请上传其他附件"); |
|
|
|
} |
|
|
|
} |
|
|
|
if(!fileList.isEmpty()){ |
|
|
|
if (!fileList.isEmpty()) { |
|
|
|
String fileLists = String.join(",", fileList).replaceAll(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
busArrearsCarryVehicleApply.setOtherFile(fileLists); |
|
|
|
} |
|
|
|