|
|
@@ -362,9 +362,9 @@ public class LocalSysFileServiceImpl implements ISysFileService {
|
|
|
@Override
|
|
|
public String generateOutInPdf(Map<String, Object> data) throws Exception {
|
|
|
PdfFilePathVo pathVo = getLocalFilePath("visit", data.get("fileName").toString());
|
|
|
- String afterStr = StringEscapeUtils.escapeEcmaScript(pathVo.getAbsolutePath());
|
|
|
+ String afterStr = StringEscapeUtils.escapeEcmaScript(pathVo.getTempFileName());
|
|
|
log.info("开始生成来访管理登记簿,当前绝对地址为:{}", afterStr);
|
|
|
- final ItextPdfTableVo pdfTableVo = PdfUtil.createTable(pathVo.getAbsolutePath(), 6, 10);
|
|
|
+ final ItextPdfTableVo pdfTableVo = PdfUtil.createTable(pathVo.getTempFileName(), 6, 10);
|
|
|
final Document document = pdfTableVo.getDocument();
|
|
|
final PdfWriter writer = pdfTableVo.getWriter();
|
|
|
|
|
|
@@ -376,7 +376,7 @@ public class LocalSysFileServiceImpl implements ISysFileService {
|
|
|
document.close();
|
|
|
writer.close();
|
|
|
log.info("来访管理登记簿生成结束,当前绝对地址为:{}", afterStr);
|
|
|
-// PdfUtil.addPageNum(pathVo.getTempFileName(), pathVo.getAbsolutePath(), fs, tableFont);
|
|
|
+ PdfUtil.addPageNum(pathVo.getTempFileName(), pathVo.getAbsolutePath(), fs, tableFont);
|
|
|
//此处返回 /statics/edu/xxx.pdf
|
|
|
return this.prefix + pathVo.getRelativePath();
|
|
|
}
|