| | |
| | | import java.io.Serializable; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | private String label; |
| | | |
| | | /** 子节点 */ |
| | | @JsonInclude(JsonInclude.Include.NON_EMPTY) |
| | | private List<TreeSelectWell> children; |
| | | |
| | | public List<HealthVo> getWell() { |
| | | return well; |
| | | } |
| | | |
| | | public void setWell(List<HealthVo> well) { |
| | | this.well = well; |
| | | } |
| | | |
| | | private List<HealthVo> well = new ArrayList<>(); |
| | | private List<TreeSelectWell> children = new ArrayList<>(); |
| | | |
| | | public TreeSelectWell() |
| | | { |
| | | |
| | | } |
| | | |
| | | public TreeSelectWell(SysDept dept) |
| | | public TreeSelectWell(TreeDeptWell dept) |
| | | { |
| | | this.id = dept.getDeptId(); |
| | | this.label = dept.getDeptName(); |
| | | this.children = dept.getChildren().stream().map(TreeSelectWell::new).collect(Collectors.toList()); |
| | | } |
| | | |
| | | public TreeSelectWell(SysMenu menu) |
| | | { |
| | | this.id = menu.getMenuId(); |
| | | this.label = menu.getMenuName(); |
| | | this.children = menu.getChildren().stream().map(TreeSelectWell::new).collect(Collectors.toList()); |
| | | } |
| | | |
| | | public Long getId() |