1、修复禅道bug

This commit is contained in:
pan
2024-09-08 23:10:11 +08:00
parent 1523a4db4f
commit d3ec27eb1b
10 changed files with 46 additions and 17 deletions

View File

@@ -36,4 +36,13 @@ public class ToolTreeSelect implements Serializable
{
}
public ToolTreeSelect(DocumentCategory docCategory)
{
this.id = docCategory.getId();
this.label = docCategory.getCategoryName();
this.types = docCategory.getTypes();
this.children = docCategory.getChildren().stream().map(ToolTreeSelect::new).collect(Collectors.toList());
}
}

View File

@@ -20,7 +20,7 @@ public class TreeSelect implements Serializable
/** 节点ID */
private Long id;
private String categoryId;
/** 节点名称 */
private String label;
@@ -54,6 +54,7 @@ public class TreeSelect implements Serializable
public TreeSelect(DocumentCategory docCategory)
{
this.id = Long.valueOf(docCategory.getId());
this.categoryId = docCategory.getId();
this.label = docCategory.getCategoryName();
this.types = docCategory.getTypes();
this.children = docCategory.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList());