|
|
|
@ -23,6 +23,8 @@ public class TreeSelects implements Serializable
|
|
|
|
|
/** 节点名称 */
|
|
|
|
|
private String label;
|
|
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
|
|
|
|
|
|
/** 子节点 */
|
|
|
|
|
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
|
|
|
|
private List<TreeSelects> children;
|
|
|
|
@ -41,6 +43,7 @@ public class TreeSelects implements Serializable
|
|
|
|
|
public TreeSelects(BaseMonitorInfo baseMonitorInfo){
|
|
|
|
|
this.id = baseMonitorInfo.getObjId();
|
|
|
|
|
this.label = baseMonitorInfo.getMonitorName();
|
|
|
|
|
this.code = baseMonitorInfo.getMonitorCode();
|
|
|
|
|
this.children = baseMonitorInfo.getChildren().stream().map(TreeSelects::new).collect(Collectors.toList());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -51,6 +54,14 @@ public class TreeSelects implements Serializable
|
|
|
|
|
this.children = menu.getChildren().stream().map(TreeSelects::new).collect(Collectors.toList());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setCode(String code) {
|
|
|
|
|
this.code = code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getId()
|
|
|
|
|
{
|
|
|
|
|
return id;
|
|
|
|
|