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
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
284
285
286
287
288
289
290
291
292
package org.jeecg.modules.system.entity;
 
import java.util.Date;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
 
import java.io.Serializable;
 
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
 
/**
 * <p>
 * 用户表
 * </p>
 *
 * @Author scott
 * @since 2018-12-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysUser implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
 
    /**
     * 登录账号
     */
    @Excel(name = "登录账号", width = 15)
    private String username;
 
    /**
     * 真实姓名
     */
    @Excel(name = "真实姓名", width = 15)
    private String realname;
 
    /**
     * 密码
     */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;
 
    /**
     * md5密码盐
     */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String salt;
 
    /**
     * 头像
     */
    @Excel(name = "头像", width = 15,type = 2)
    private String avatar;
 
    /**
     * 生日
     */
    @Excel(name = "生日", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
 
    /**
     * 性别(1:男 2:女)
     */
    @Excel(name = "性别", width = 15,dicCode="sex")
    @Dict(dicCode = "sex")
    private Integer sex;
 
    /**
     * 电子邮件
     */
    @Excel(name = "电子邮件", width = 15)
    private String email;
 
    /**
     * 电话
     */
    @Excel(name = "电话", width = 15)
    private String phone;
 
    /**
     * 部门code(当前选择登录部门)
     */
    private String orgCode;
 
    /**部门名称*/
    private transient String orgCodeTxt;
 
    /**
     * 状态(1:正常  2:冻结 )
     */
    @Excel(name = "状态", width = 15,dicCode="user_status")
    @Dict(dicCode = "user_status")
    private Integer status;
 
    /**
     * 删除状态(0,正常,1已删除)
     */
    @Excel(name = "删除状态", width = 15,dicCode="del_flag")
    @TableLogic
    private Integer delFlag;
 
    /**
     * 工号,唯一键
     */
    @Excel(name = "工号", width = 15)
    private String workNo;
 
    /**
     * 职务,关联职务表
     */
    @Excel(name = "职务", width = 15)
    @Dict(dictTable ="sys_position",dicText = "name",dicCode = "code")
    private String post;
 
    /**
     * 座机号
     */
    @Excel(name = "座机号", width = 15)
    private String telephone;
 
    /**
     * 创建人
     */
    private String createBy;
 
    /**
     * 创建时间
     */
    private Date createTime;
 
    /**
     * 更新人
     */
    private String updateBy;
 
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 同步工作流引擎1同步0不同步
     */
    private Integer activitiSync;
 
    /**
     * 身份(0 普通成员 1 上级)
     */
    @Excel(name="(1普通成员 2上级)",width = 15)
    private Integer userIdentity;
 
    /**
     * 负责部门
     */
    @Excel(name="负责部门",width = 15,dictTable ="sys_depart",dicText = "depart_name",dicCode = "id")
    @Dict(dictTable ="sys_depart",dicText = "depart_name",dicCode = "id")
    private String departIds;
 
    /**
     * 多租户id配置,编辑用户的时候设置
     */
    private String relTenantIds;
 
    /**设备id uniapp推送用*/
    private String clientId;
    /**
     * 是否小程序用户  null-不是  0-待审核  1-已审核(是)
     */
    private Integer mini;
    /**
     * 小程序角色  1-管理员  其他-普通用户
     */
    private Integer miniRole;
    /**
     * 微信openid
     */
    private String openid;
    /**
     * 推送审批人员  1-是
     */
    private Integer audit;
 
 
 
    /**入职日期*/
    @Excel(name = "入职日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "入职日期")
    private Date entryDate;
    /**学历-数据字典*/
    @Excel(name = "学历-数据字典", width = 15,dicCode = "hrm_education")
    @Dict(dicCode = "hrm_education")
    @ApiModelProperty(value = "学历-数据字典")
    private Integer education;
    /**婚姻状况*/
    @Excel(name = "婚姻状况", width = 15,dicCode = "hrm_marital_status")
    @Dict(dicCode = "hrm_marital_status")
    @ApiModelProperty(value = "婚姻状况")
    private Integer maritalStatus;
    /**工作经历*/
    @Excel(name = "工作经历", width = 15)
    @ApiModelProperty(value = "工作经历")
    private String workExp;
    /**编制*/
    @Excel(name = "编制", width = 15)
    @ApiModelProperty(value = "编制")
    private Integer staffing;
    /**应届生*/
    @Excel(name = "应届生", width = 15)
    @ApiModelProperty(value = "应届生")
    private Integer grad;
    /**在职、离职-数据字典*/
    @Excel(name = "在职、离职-数据字典", width = 15,dicCode = "hrm_service")
    @Dict(dicCode = "hrm_service")
    @ApiModelProperty(value = "在职、离职-数据字典")
    private Integer service;
    /**雇佣属性-数据字典(正式、试用、实习)*/
    @Excel(name = "雇佣属性-数据字典(正式、试用、实习)", width = 15,dicCode = "hrm_employ")
    @Dict(dicCode = "hrm_employ")
    @ApiModelProperty(value = "雇佣属性-数据字典(正式、试用、实习)")
    private Integer employ;
    /**雇佣状态-数据字典(劳派、借调、委派)*/
    @Excel(name = "雇佣状态-数据字典(劳派、借调、委派)", width = 15,dicCode = "hrm_employ_statu")
    @Dict(dicCode = "hrm_employ_statu")
    @ApiModelProperty(value = "雇佣状态-数据字典(劳派、借调、委派)")
    private Integer employStatu;
    /**离职日期*/
    @Excel(name = "离职日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "离职日期")
    private Date resignedDate;
    /**毕业院校**/
    private String school;
    /**
     * 大学专业
     */
    private String major;
    /**
     * 职级等阶
     */
    @Excel(name = "职级等阶", width = 15, format = "yyyy-MM-dd",dicCode = "hrm_level")
    @Dict(dicCode = "hrm_level")
    private String level;
 
    @Excel(name = "试用期结束日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "试用期结束日期")
    private Date probationDate;
 
    /**
     * 备注
     */
    private String remark;
    /**
     * 工龄
     */
    private Integer tenure;
    /**
     * 职称
     */
    private String jobTitle;
 
 
    @TableField(exist = false)
    private String teamName;
 
 
}