fix:生成报告

This commit is contained in:
2026-01-22 20:58:46 +08:00
parent ca83516f97
commit 61e812da9c

View File

@@ -162,8 +162,8 @@ public class SimulationRunServiceImpl extends ServiceImpl<SimulationRunMapper, S
private final ObjectMapper objectMapper = new ObjectMapper();
// private static final String TEMP_REPORT_PATH = "/opt/report/";
private static final String TEMP_REPORT_PATH = System.getProperty("user.dir") + File.separator + "project";
private static final String TEMP_REPORT_PATH = "/opt/report/";
// private static final String TEMP_REPORT_PATH = System.getProperty("user.dir") + File.separator + "project";
private static final String TEMPLATE_PATH = " /opt/script/template ";
@@ -1398,6 +1398,7 @@ public class SimulationRunServiceImpl extends ServiceImpl<SimulationRunMapper, S
}
// 回设图片文件路径
reportContent = replaceFileIdsWithPaths(reportContent, filePathMap);
log.info("reportContent:{}", JSON.toJSONString(reportContent));
// 前端参数写入临时目录
FileOutputStream projectInfoOutputStream = null;