This commit is contained in:
ls
2024-11-08 22:21:22 +08:00
parent e0746875b5
commit ccba5be4c4

View File

@@ -51,7 +51,7 @@ public class ExperimentDocServiceImpl extends ServiceImpl<ExperimentDocMapper, E
public String generateExperimentDoc(String experimentId, String fileName, Map<String, Object> params) {
String absolutePath = templatePath + File.separator + docTempalteMap.get(fileName);
log.info("doc template path: " + absolutePath);
if (FileUtil.exist(absolutePath)) {
if (!FileUtil.exist(absolutePath)) {
throw new RuntimeException("模板文件不存在!");
}
try {