报告路径,报告名称修改
This commit is contained in:
@@ -602,11 +602,11 @@ public class PqReportServiceImpl extends ServiceImpl<PqReportMapper, PqReport> i
|
|||||||
dealDataModel(baseModelDocument, devReportParam, pqDevVO);
|
dealDataModel(baseModelDocument, devReportParam, pqDevVO);
|
||||||
// 处理需要输出的目录地址 基础路径+设备类型+装置编号.docx
|
// 处理需要输出的目录地址 基础路径+设备类型+装置编号.docx
|
||||||
// 最终文件输出的路径
|
// 最终文件输出的路径
|
||||||
String dirPath = reportPath.concat(File.separator).concat(devType.getName());
|
// String dirPath = reportPath.concat(File.separator).concat(devType.getName());
|
||||||
// String dirPath = reportPath;
|
String dirPath = reportPath;
|
||||||
// 确保目录存在
|
// 确保目录存在
|
||||||
ensureDirectoryExists(dirPath);
|
ensureDirectoryExists(dirPath);
|
||||||
String reportFullPath = dirPath.concat(File.separator).concat(pqDevVO.getCreateId()).concat(".docx");
|
String reportFullPath = dirPath.concat(File.separator).concat(devType.getName()).concat(" ").concat(pqDevVO.getCreateId()).concat(".docx");
|
||||||
FileOutputStream out = new FileOutputStream(reportFullPath);
|
FileOutputStream out = new FileOutputStream(reportFullPath);
|
||||||
// 4. 保存新的Word文档
|
// 4. 保存新的Word文档
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user