提交 | 用户 | 时间
|
1ac2bc
|
1 |
package cn.stylefeng.guns.sys.modular.system.entity; |
懒 |
2 |
|
|
3 |
import com.baomidou.mybatisplus.annotation.*; |
|
4 |
|
|
5 |
import javax.validation.constraints.NotBlank; |
|
6 |
import javax.validation.constraints.NotNull; |
|
7 |
import java.io.Serializable; |
|
8 |
import java.util.Date; |
|
9 |
|
|
10 |
/** |
|
11 |
* <p> |
|
12 |
* 部门表 |
|
13 |
* </p> |
|
14 |
* |
|
15 |
* @author stylefeng |
|
16 |
* @since 2019-04-01 |
|
17 |
*/ |
|
18 |
@TableName("sys_dept") |
|
19 |
public class Dept implements Serializable { |
|
20 |
|
|
21 |
private static final long serialVersionUID = 1L; |
|
22 |
|
|
23 |
/** |
|
24 |
* 主键id |
|
25 |
*/ |
|
26 |
@TableId(value = "dept_id", type = IdType.ID_WORKER) |
|
27 |
private Long deptId; |
|
28 |
|
|
29 |
/** |
|
30 |
* 父部门id |
|
31 |
*/ |
|
32 |
@TableField("pid") |
|
33 |
@NotNull |
|
34 |
private Long pid; |
|
35 |
|
|
36 |
/** |
|
37 |
* 父级ids |
|
38 |
*/ |
|
39 |
@TableField("pids") |
|
40 |
private String pids; |
|
41 |
|
|
42 |
/** |
|
43 |
* 简称 |
|
44 |
*/ |
|
45 |
@TableField("simple_name") |
|
46 |
@NotBlank |
|
47 |
private String simpleName; |
|
48 |
|
|
49 |
/** |
|
50 |
* 全称 |
|
51 |
*/ |
|
52 |
@TableField("full_name") |
|
53 |
@NotBlank |
|
54 |
private String fullName; |
|
55 |
|
|
56 |
/** |
|
57 |
* 描述 |
|
58 |
*/ |
|
59 |
@TableField("description") |
|
60 |
private String description; |
|
61 |
|
|
62 |
/** |
|
63 |
* 版本(乐观锁保留字段) |
|
64 |
*/ |
|
65 |
@TableField("version") |
|
66 |
private Integer version; |
|
67 |
|
|
68 |
/** |
|
69 |
* 排序 |
|
70 |
*/ |
|
71 |
@TableField("sort") |
|
72 |
private Integer sort; |
|
73 |
|
|
74 |
/** |
|
75 |
* 创建时间 |
|
76 |
*/ |
|
77 |
@TableField(value = "create_time", fill = FieldFill.INSERT) |
|
78 |
private Date createTime; |
|
79 |
|
|
80 |
/** |
|
81 |
* 修改时间 |
|
82 |
*/ |
|
83 |
@TableField(value = "update_time", fill = FieldFill.UPDATE) |
|
84 |
private Date updateTime; |
|
85 |
|
|
86 |
/** |
|
87 |
* 创建人 |
|
88 |
*/ |
|
89 |
@TableField(value = "create_user", fill = FieldFill.INSERT) |
|
90 |
private Long createUser; |
|
91 |
|
|
92 |
/** |
|
93 |
* 修改人 |
|
94 |
*/ |
|
95 |
@TableField(value = "update_user", fill = FieldFill.UPDATE) |
|
96 |
private Long updateUser; |
|
97 |
|
|
98 |
|
|
99 |
public Long getDeptId() { |
|
100 |
return deptId; |
|
101 |
} |
|
102 |
|
|
103 |
public void setDeptId(Long deptId) { |
|
104 |
this.deptId = deptId; |
|
105 |
} |
|
106 |
|
|
107 |
public Long getPid() { |
|
108 |
return pid; |
|
109 |
} |
|
110 |
|
|
111 |
public void setPid(Long pid) { |
|
112 |
this.pid = pid; |
|
113 |
} |
|
114 |
|
|
115 |
public String getPids() { |
|
116 |
return pids; |
|
117 |
} |
|
118 |
|
|
119 |
public void setPids(String pids) { |
|
120 |
this.pids = pids; |
|
121 |
} |
|
122 |
|
|
123 |
public String getSimpleName() { |
|
124 |
return simpleName; |
|
125 |
} |
|
126 |
|
|
127 |
public void setSimpleName(String simpleName) { |
|
128 |
this.simpleName = simpleName; |
|
129 |
} |
|
130 |
|
|
131 |
public String getFullName() { |
|
132 |
return fullName; |
|
133 |
} |
|
134 |
|
|
135 |
public void setFullName(String fullName) { |
|
136 |
this.fullName = fullName; |
|
137 |
} |
|
138 |
|
|
139 |
public String getDescription() { |
|
140 |
return description; |
|
141 |
} |
|
142 |
|
|
143 |
public void setDescription(String description) { |
|
144 |
this.description = description; |
|
145 |
} |
|
146 |
|
|
147 |
public Integer getVersion() { |
|
148 |
return version; |
|
149 |
} |
|
150 |
|
|
151 |
public void setVersion(Integer version) { |
|
152 |
this.version = version; |
|
153 |
} |
|
154 |
|
|
155 |
public Integer getSort() { |
|
156 |
return sort; |
|
157 |
} |
|
158 |
|
|
159 |
public void setSort(Integer sort) { |
|
160 |
this.sort = sort; |
|
161 |
} |
|
162 |
|
|
163 |
public Date getCreateTime() { |
|
164 |
return createTime; |
|
165 |
} |
|
166 |
|
|
167 |
public void setCreateTime(Date createTime) { |
|
168 |
this.createTime = createTime; |
|
169 |
} |
|
170 |
|
|
171 |
public Date getUpdateTime() { |
|
172 |
return updateTime; |
|
173 |
} |
|
174 |
|
|
175 |
public void setUpdateTime(Date updateTime) { |
|
176 |
this.updateTime = updateTime; |
|
177 |
} |
|
178 |
|
|
179 |
public Long getCreateUser() { |
|
180 |
return createUser; |
|
181 |
} |
|
182 |
|
|
183 |
public void setCreateUser(Long createUser) { |
|
184 |
this.createUser = createUser; |
|
185 |
} |
|
186 |
|
|
187 |
public Long getUpdateUser() { |
|
188 |
return updateUser; |
|
189 |
} |
|
190 |
|
|
191 |
public void setUpdateUser(Long updateUser) { |
|
192 |
this.updateUser = updateUser; |
|
193 |
} |
|
194 |
|
|
195 |
@Override |
|
196 |
public String toString() { |
|
197 |
return "Dept{" + |
|
198 |
"deptId=" + deptId + |
|
199 |
", pid=" + pid + |
|
200 |
", pids=" + pids + |
|
201 |
", simpleName=" + simpleName + |
|
202 |
", fullName=" + fullName + |
|
203 |
", description=" + description + |
|
204 |
", version=" + version + |
|
205 |
", sort=" + sort + |
|
206 |
", createTime=" + createTime + |
|
207 |
", updateTime=" + updateTime + |
|
208 |
", createUser=" + createUser + |
|
209 |
", updateUser=" + updateUser + |
|
210 |
"}"; |
|
211 |
} |
|
212 |
} |