SysUser.java 3.2 KB
Newer Older
1 2 3 4
package org.jeecg.modules.system.entity;

import java.util.Date;

5
import com.baomidou.mybatisplus.annotation.TableLogic;
budgerigar's avatar
budgerigar 已提交
6
import com.fasterxml.jackson.annotation.JsonIgnore;
budgerigar's avatar
budgerigar 已提交
7
import com.fasterxml.jackson.annotation.JsonProperty;
8 9
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
10 11 12 13 14 15 16
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;
17

18 19 20 21 22 23 24 25 26
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
27
 * @Author scott
28 29 30 31 32 33 34 35 36 37 38 39
 * @since 2018-12-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
40
    @TableId(type = IdType.ID_WORKER_STR)
41
    private String id;
42

43 44 45
    /**
     * 登录账号
     */
46
    @Excel(name = "登录账号", width = 15)
47 48 49 50 51
    private String username;

    /**
     * 真实姓名
     */
52
    @Excel(name = "真实姓名", width = 15)
53 54 55 56 57
    private String realname;

    /**
     * 密码
     */
budgerigar's avatar
budgerigar 已提交
58
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
59 60 61 62 63
    private String password;

    /**
     * md5密码盐
     */
budgerigar's avatar
budgerigar 已提交
64
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
65 66 67 68 69
    private String salt;

    /**
     * 头像
     */
70
    @Excel(name = "头像", width = 15)
71 72 73 74 75
    private String avatar;

    /**
     * 生日
     */
76 77 78
    @Excel(name = "生日", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
79 80 81 82 83
    private Date birthday;

    /**
     * 性别(1:男 2:女)
     */
84 85
    @Excel(name = "性别", width = 15,dicCode="sex")
    @Dict(dicCode = "sex")
86 87 88 89 90
    private Integer sex;

    /**
     * 电子邮件
     */
91
    @Excel(name = "电子邮件", width = 15)
92 93 94 95 96
    private String email;

    /**
     * 电话
     */
97
    @Excel(name = "电话", width = 15)
98 99
    private String phone;

100 101 102 103 104
    /**
     * 部门code
     */
    private String orgCode;

105 106 107
    /**
     * 状态(1:正常  2:冻结 )
     */
108 109
    @Excel(name = "状态", width = 15,dicCode="user_status")
    @Dict(dicCode = "user_status")
110 111 112 113 114
    private Integer status;

    /**
     * 删除状态(0,正常,1已删除)
     */
115
    @Excel(name = "删除状态", width = 15,dicCode="del_flag")
116
    @TableLogic
117 118
    private String delFlag;

119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
    /**
     * 工号,唯一键
     */
    @Excel(name = "工号", width = 15)
    private String workNo;

    /**
     * 职务,关联职务表
     */
    @Excel(name = "职务", width = 15)
    private String post;

    /**
     * 座机号
     */
    @Excel(name = "座机号", width = 15)
    private String telephone;

137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 更新时间
     */
    private Date updateTime;
156 157 158 159
    /**
     * 同步工作流引擎1同步0不同步
     */
    private String activitiSync;
160 161 162


}