zjh
2025-03-25 dc9f340fa83555c30655a0e42c175a91d81d65d2
ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjReportTemplateController.java
@@ -133,8 +133,8 @@
            return;
        }
        String userId = SecurityUtils.getLoginUser().getUsername();
        PDFBinaryUtil.base64StringToPDF(one.getTemplate(), FileUtil.mkdir(value).getPath() + "\\" + userId + reportTemId + "_模板预览.pdf");
        String filePath = value + "\\" + userId + reportTemId + "_模板预览.pdf";
        PDFBinaryUtil.base64StringToPDF(one.getTemplate(), FileUtil.mkdir(value).getPath() + File.separator + userId + reportTemId + "_模板预览.pdf");
        String filePath = value + File.separator + userId + reportTemId + "_模板预览.pdf";
        File f = new File(filePath);
        if (filePath.isEmpty()) {
            System.out.println("文件不存在!");
@@ -202,8 +202,8 @@
            return;
        }
        String userId = SecurityUtils.getLoginUser().getUsername();
        PDFBinaryUtil.base64StringToPDF(one.getTemplate(), FileUtil.mkdir(value).getPath() + "\\" + userId + "_职业健康体检个人信息表.pdf");
        String filePath = value + "\\" + userId + "_职业健康体检个人信息表.pdf";
        PDFBinaryUtil.base64StringToPDF(one.getTemplate(), FileUtil.mkdir(value).getPath() + File.separator + userId + "_职业健康体检个人信息表.pdf");
        String filePath = value + File.separator + userId + "_职业健康体检个人信息表.pdf";
        File f = new File(filePath);
        if (filePath.isEmpty()) {
            System.out.println("文件不存在!");