This commit is contained in:
ls
2025-02-08 19:10:13 +08:00
parent 6582d1f57d
commit fcda66db82

View File

@@ -66,7 +66,7 @@ public class ExperimentDocServiceImpl extends ServiceImpl<ExperimentDocMapper, E
throw new RuntimeException("实验数据不存在!"); throw new RuntimeException("实验数据不存在!");
} }
String tmpDirPath = FileUtil.getTmpDirPath(); String tmpDirPath = FileUtil.getTmpDirPath();
String outputFile = tmpDirPath + fileName + "-" + experimentId + "-" + version + ".docx"; String outputFile = tmpDirPath + File.separator + fileName + "-" + experimentId + "-" + version + ".docx";
if (FileUtil.exist(outputFile)) { if (FileUtil.exist(outputFile)) {
FileUtil.del(outputFile); FileUtil.del(outputFile);
} }