Merge branch 'main' of http://carsafe.uicp.cn/toolchaintechnologycenter/spdm-backend
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -135,6 +135,9 @@ public class UploadFilesReq {
|
||||
@Schema(description = "知识库文件审批模板名称")
|
||||
private String templateName;
|
||||
|
||||
@Schema(description = "是否需要覆盖同名文件")
|
||||
private Boolean isConverSameNameFile;
|
||||
|
||||
/**
|
||||
* 扩展信息
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user