From 4b41e2edd1169d2662ff7d5046950f16aa24edb6 Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Tue, 29 Apr 2025 09:07:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E6=8A=A5=E5=91=8A=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E4=B8=8D=E5=8C=85=E5=90=AB=E8=AE=BE=E5=A4=87=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../njcn/gather/report/service/impl/PqReportServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/detection/src/main/java/com/njcn/gather/report/service/impl/PqReportServiceImpl.java b/detection/src/main/java/com/njcn/gather/report/service/impl/PqReportServiceImpl.java index 7446f336..11660484 100644 --- a/detection/src/main/java/com/njcn/gather/report/service/impl/PqReportServiceImpl.java +++ b/detection/src/main/java/com/njcn/gather/report/service/impl/PqReportServiceImpl.java @@ -551,7 +551,8 @@ public class PqReportServiceImpl extends ServiceImpl i dealDataModel(baseModelDocument, devReportParam, pqDevVO); // 处理需要输出的目录地址 基础路径+设备类型+装置编号.docx // 最终文件输出的路径 - String dirPath = reportPath.concat(File.separator).concat(devType.getName()); +// String dirPath = reportPath.concat(File.separator).concat(devType.getName()); + String dirPath = reportPath; // 确保目录存在 ensureDirectoryExists(dirPath); FileOutputStream out = new FileOutputStream(dirPath.concat(File.separator).concat(pqDevVO.getCreateId()).concat(".docx"));