1、脚本生成报告 bugfix

This commit is contained in:
2025-12-03 18:10:42 +08:00
parent 27fa62eaef
commit e3df890dc0

View File

@@ -1108,7 +1108,7 @@ public class SimulationRunServiceImpl extends ServiceImpl<SimulationRunMapper, S
String jsonString = JSON.toJSONString(projecInfoReq);
FileOutputStream projectInfoOutputStream = null;
try {
projectInfoOutputStream = new FileOutputStream(TEMP_REPORT_PATH + "projectInfo.json");
projectInfoOutputStream = new FileOutputStream(TEMP_REPORT_PATH + randomId + File.separator + "projectInfo.json");
projectInfoOutputStream.write(jsonString.getBytes(StandardCharsets.UTF_8));
projectInfoOutputStream.flush();
projectInfoOutputStream.close();
@@ -1133,7 +1133,7 @@ public class SimulationRunServiceImpl extends ServiceImpl<SimulationRunMapper, S
String jsonString = JSON.toJSONString(exportPerformanceList);
FileOutputStream performanceOutputStream = null;
try {
performanceOutputStream = new FileOutputStream(TEMP_REPORT_PATH + "performance.json");
performanceOutputStream = new FileOutputStream(TEMP_REPORT_PATH + randomId + File.separator + "performance.json");
performanceOutputStream.write(jsonString.getBytes(StandardCharsets.UTF_8));
performanceOutputStream.flush();
performanceOutputStream.close();