This commit is contained in:
2026-03-04 12:45:47 +08:00
11 changed files with 205 additions and 107 deletions

View File

@@ -24,12 +24,4 @@ public enum NodeTypeEnum {
return value;
}
/**
* 是否节点类型
*/
public static boolean isNodeType(String value) {
return PROJECT.getValue().equals(value) || PHASE.getValue().equals(value)
|| DISCIPLINE.getValue().equals(value) || MACHINE.getValue().equals(value)
|| WORKSPACE.getValue().equals(value);
}
}

View File

@@ -135,6 +135,9 @@ public class UploadFilesReq {
@Schema(description = "知识库文件审批模板名称")
private String templateName;
@Schema(description = "是否需要覆盖同名文件")
private Boolean isConverSameNameFile;
/**
* 扩展信息
*/

View File

@@ -31,4 +31,12 @@ public class TagMapService {
// project-->tag1 phase-->tag2
return tagMapList.getData().stream().collect(Collectors.toMap(DataDictionary::getDictValue, DataDictionary::getDictName));
}
/**
* 是否节点类型
*/
public boolean isNodeType(String tag) {
Map<String, String> tagMap = getTagMapName();
return tagMap.containsKey(tag);
}
}