生成报告路径不包含设备类型

This commit is contained in:
caozehui
2025-04-29 09:07:36 +08:00
parent 5fa09bb41b
commit 4b41e2edd1

View File

@@ -551,7 +551,8 @@ public class PqReportServiceImpl extends ServiceImpl<PqReportMapper, PqReport> 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"));