无关风月
2024-12-31 0c51a577db337520452022d9d6a22b720ef858d4
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
package com.xinquan.system.api.domain;
 
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xinquan.common.core.web.domain.BaseEntity;
 
/**
 * 部门表 sys_dept
 * 
 * @author ruoyi
 */
public class SysDept extends BaseEntity
{
    private static final long serialVersionUID = 1L;
 
 
    /** 部门ID */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
 
    private Long deptId;
    @ApiModelProperty(value = "部门Id")
    private String deptCode;
    @ApiModelProperty(value = "部门人数")
    @TableField(exist = false)
 
    private Integer userCount;
 
    /** 父部门ID */
    private Long parentId;
 
    /** 祖级列表 */
    private String ancestors;
    @ApiModelProperty("禁用备注")
    private String reason;
    @ApiModelProperty("操作人")
    private String handleName;
    @ApiModelProperty("禁用时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime disableTime;
 
 
    @ApiModelProperty(value = "部门名称")
    private String deptName;
    @ApiModelProperty(value = "备注")
 
    private String remark;
 
    /** 显示顺序 */
    private Integer orderNum;
 
    /** 负责人 */
    private String leader;
 
    /** 联系电话 */
    private String phone;
 
    /** 邮箱 */
    private String email;
 
 
    @ApiModelProperty(value = "部门状态:0正常,1停用")
    private String status;
 
    /** 删除标志(0代表存在 2代表删除) */
    private String delFlag;
 
    /** 父部门名称 */
    private String parentName;
    
    /** 子部门 */
    private List<SysDept> children = new ArrayList<SysDept>();
 
    public Long getDeptId()
    {
        return deptId;
    }
 
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }
 
    public Long getParentId()
    {
        return parentId;
    }
 
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }
 
    public String getAncestors()
    {
        return ancestors;
    }
 
    public void setAncestors(String ancestors)
    {
        this.ancestors = ancestors;
    }
 
    @Size(min = 0, max = 30, message = "部门名称长度不能超过30个字符")
    public String getDeptName()
    {
        return deptName;
    }
 
    public void setDeptName(String deptName)
    {
        this.deptName = deptName;
    }
 
    public Integer getOrderNum()
    {
        return orderNum;
    }
 
    public void setOrderNum(Integer orderNum)
    {
        this.orderNum = orderNum;
    }
 
    public String getLeader()
    {
        return leader;
    }
 
    public void setLeader(String leader)
    {
        this.leader = leader;
    }
 
    @Size(min = 0, max = 11, message = "联系电话长度不能超过11个字符")
    public String getPhone()
    {
        return phone;
    }
 
    public void setPhone(String phone)
    {
        this.phone = phone;
    }
 
    @Email(message = "邮箱格式不正确")
    @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
    public String getEmail()
    {
        return email;
    }
 
    public void setEmail(String email)
    {
        this.email = email;
    }
 
    public String getStatus()
    {
        return status;
    }
 
    public void setStatus(String status)
    {
        this.status = status;
    }
 
    public String getDelFlag()
    {
        return delFlag;
    }
 
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }
 
    public String getParentName()
    {
        return parentName;
    }
 
    public void setParentName(String parentName)
    {
        this.parentName = parentName;
    }
 
    public List<SysDept> getChildren()
    {
        return children;
    }
 
    public void setChildren(List<SysDept> children)
    {
        this.children = children;
    }
 
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deptId", getDeptId())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("deptName", getDeptName())
            .append("orderNum", getOrderNum())
            .append("leader", getLeader())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
 
    @Override
    public String getRemark() {
        return remark;
    }
 
    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }
 
    public String getDeptCode() {
        return deptCode;
    }
 
    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }
 
 
 
    public Integer getUserCount() {
        return userCount;
    }
 
    public void setUserCount(Integer userCount) {
        this.userCount = userCount;
    }
 
    public String getReason() {
        return reason;
    }
 
    public void setReason(String reason) {
        this.reason = reason;
    }
 
    public String getHandleName() {
        return handleName;
    }
 
    public void setHandleName(String handleName) {
        this.handleName = handleName;
    }
 
 
    public LocalDateTime getDisableTime() {
        return disableTime;
    }
 
    public void setDisableTime(LocalDateTime disableTime) {
        this.disableTime = disableTime;
    }
}