fix:生成报告

This commit is contained in:
2026-01-24 16:46:24 +08:00
parent d4703cdb14
commit e52c296e27

View File

@@ -1445,7 +1445,7 @@ public class SimulationRunServiceImpl extends ServiceImpl<SimulationRunMapper, S
String reportName = "report_" +
LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss")) +
".docx";
FileInputStream fileInputStream = new FileInputStream(TEMP_REPORT_PATH + randomId + File.separator + "report.docx");
FileInputStream fileInputStream = new FileInputStream(TEMP_REPORT_PATH + randomId + File.separator + reportName);
fileData = fileInputStream.readAllBytes();
// 上传到算例下的报告文件夹下