| | |
| | | /** 节点名称 */
|
| | | private String label;
|
| | |
|
| | | /** 节点ID */
|
| | | private Long value;
|
| | |
|
| | | /** 节点禁用 */
|
| | | private boolean disabled = false;
|
| | |
|
| | |
| | | public TreeSelect(SysDept dept)
|
| | | {
|
| | | this.id = dept.getDeptId();
|
| | | this.value = dept.getDeptId();
|
| | | this.label = dept.getDeptName();
|
| | | this.disabled = StringUtils.equals(UserConstants.DEPT_DISABLE, dept.getStatus());
|
| | | this.children = dept.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList());
|
| | |
| | | {
|
| | | this.children = children;
|
| | | }
|
| | |
|
| | | public Long getValue() {
|
| | | return value;
|
| | | }
|
| | |
|
| | | public void setValue(Long value) {
|
| | | this.value = value;
|
| | | }
|
| | | }
|