|
@ -2734,11 +2734,26 @@ public class LoanSettleApplyService extends MybatisBaseService<LoanSettleApplyMa |
|
|
} |
|
|
} |
|
|
dataMap.put("photoPath64", photoList); |
|
|
dataMap.put("photoPath64", photoList); |
|
|
//获取模板
|
|
|
//获取模板
|
|
|
|
|
|
// //模板路径
|
|
|
|
|
|
// String sourcePath = "D:\\anrui\\upload\\template\\";
|
|
|
|
|
|
// //生成word文件名
|
|
|
|
|
|
// String dateStr = DateUtil.format(new Date(), "yyyyMMdd");
|
|
|
|
|
|
// long seconds = System.currentTimeMillis();
|
|
|
|
|
|
// String typeName = dateStr + seconds + ".doc";
|
|
|
|
|
|
// // 生成文件路径
|
|
|
|
|
|
// String targetPath = sourcePath + dateStr;
|
|
|
|
|
|
// WordUtils.creatWord(dataMap, "jqsq2", sourcePath, targetPath, typeName);
|
|
|
|
|
|
// //新生成的word路径
|
|
|
|
|
|
// String wordPath = targetPath + "\\" + typeName;
|
|
|
|
|
|
// //生成出门证文件名
|
|
|
|
|
|
// String pdfName = "结算申请_" + dateStr + seconds + ".pdf";
|
|
|
|
|
|
// WordUtils.doc2pdf(wordPath, targetPath, pdfName, data.getCreateByName());
|
|
|
|
|
|
// return rb.success().setData("template/" + dateStr + "/" + pdfName);
|
|
|
String temp = "/template/"; |
|
|
String temp = "/template/"; |
|
|
String targetPath = docPdfComponent.getUploadTemplateUrl(); |
|
|
String targetPath = docPdfComponent.getUploadTemplateUrl(); |
|
|
try { |
|
|
try { |
|
|
//获取模板
|
|
|
//获取模板
|
|
|
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/jqsq2.ftl"); |
|
|
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/jqsq3.ftl"); |
|
|
//生成word文件名
|
|
|
//生成word文件名
|
|
|
String dateStr = DateUtil.format(new Date(), "yyyyMMdd"); |
|
|
String dateStr = DateUtil.format(new Date(), "yyyyMMdd"); |
|
|
long seconds = System.currentTimeMillis(); |
|
|
long seconds = System.currentTimeMillis(); |
|
|