zhuguifei
2025-04-28 442928123f63ee497d766f9a7a14f0a6ee067e25
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
package org.jeecg.modules.system.model;
 
import org.jeecg.modules.system.entity.SysDepart;
 
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
 
/**
 * 部门用户树
 * 部门
 * 丨
 * 用户
 */
public class DepartUserModel implements Serializable {
    public static final Integer TYPE_DEPART = 1;
    public static final Integer TYPE_USER = 2;
    private String id;
    private String key;
 
    private String value;
 
    private String title;
 
    private Integer type;   //树的类型  1-部门  2-用户
 
    private boolean isLeaf;
 
 
    private String parentId;
 
    private String departId;
 
    private String departName;
    private String orgCode;
    private Integer sort;
 
 
    private Map<String,Object> scopedSlots;
 
 
 
    public DepartUserModel() {
    }
 
    public DepartUserModel(SysDepart sysDepart) {
        this.key = sysDepart.getId();
        this.value = sysDepart.getId();
        this.title = sysDepart.getDepartName();
        this.id = sysDepart.getId();
        this.parentId = sysDepart.getParentId();
        this.departId = sysDepart.getId();
        this.departName = sysDepart.getDepartName();
        this.orgCode = sysDepart.getOrgCode();
        this.sort = sysDepart.getDepartOrder();
 
    }
 
    public Integer getSort() {
        return sort;
    }
 
    public void setSort(Integer sort) {
        this.sort = sort;
    }
 
    public Map<String, Object> getScopedSlots() {
        return scopedSlots;
    }
 
    public void setScopedSlots(Map<String, Object> scopedSlots) {
        this.scopedSlots = scopedSlots;
    }
 
    public String getId() {
        return id;
    }
 
    public void setId(String id) {
        this.id = id;
    }
 
    public String getOrgCode() {
        return orgCode;
    }
 
    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }
 
    private String username;
    private String realname;
 
    public boolean isLeaf() {
        return isLeaf;
    }
 
    public void setLeaf(boolean leaf) {
        isLeaf = leaf;
    }
 
    public String getParentId() {
        return parentId;
    }
 
    public void setParentId(String parentId) {
        this.parentId = parentId;
    }
 
    public String getDepartId() {
        return departId;
    }
 
    public void setDepartId(String departId) {
        this.departId = departId;
    }
 
    public String getDepartName() {
        return departName;
    }
 
    public void setDepartName(String departName) {
        this.departName = departName;
    }
 
    public String getUsername() {
        return username;
    }
 
    public void setUsername(String username) {
        this.username = username;
    }
 
    public String getRealname() {
        return realname;
    }
 
    public void setRealname(String realname) {
        this.realname = realname;
    }
 
    List<DepartUserModel> children = new ArrayList<>();
 
    public String getKey() {
        return key;
    }
 
    public void setKey(String key) {
        this.key = key;
    }
 
    public String getValue() {
        return value;
    }
 
    public void setValue(String value) {
        this.value = value;
    }
 
    public String getTitle() {
        return title;
    }
 
    public void setTitle(String title) {
        this.title = title;
    }
 
    public Integer getType() {
        return type;
    }
 
    public void setType(Integer type) {
        this.type = type;
    }
 
    public List<DepartUserModel> getChildren() {
        return children;
    }
 
    public void setChildren(List<DepartUserModel> children) {
        this.children = children;
    }
 
 
 
 
 
}