package cn.com.countrygarden.bi.main.model.sys;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

import javax.persistence.*;
import java.util.Date;

/**
 * 用户
 *
 * @author  木木子
 *
 * @date 2018-08-24
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name="sys_user")
public class SysUser  {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /**
     * 关联erp用户编码
     */
    @Column(name="erp_user_id")
    private String erpUserId;
    /**
     * 姓名
     */
    private String name;
    /**
     * 部门名称
     */
    @Column(name="dept_name")
    private String deptName;
    /**
     * 关联erp部门
     */
    @Column(name="dept_id")
    private String deptId;
    /**
     * 电话
     */
    private String phone;
    /**
     * 关联erp用户登录名
     */
    @Column(name="erp_user_code")
    private String erpUserCode;
    /**
     * 是否锁定
     */
    private Integer locked;
    /**
     * 可用
     */
    private Integer enable;
    /**
     * 创建日期
     */
    @Column(name="create_date")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;
    /**
     * 创建人
     */
    @Column(name="create_by")
    private String createBy;
    /**
     * 修改日期
     */
    @Column(name="update_date")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateDate;
    /**
     * 修改人
     */
    @Column(name="update_by")
    private String updateBy;

    @Column(name="user_type")
    private String userType;


    @Column(name="nc_user_code")
    private String ncUserCode;

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getNcUserCode() {
        return ncUserCode;
    }

    public void setNcUserCode(String ncUserCode) {
        this.ncUserCode = ncUserCode;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }
    public void setErpUserId(String erpUserId) {
        this.erpUserId = erpUserId;
    }

    public String getErpUserId() {
        return erpUserId;
    }
    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptName() {
        return deptName;
    }
    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptId() {
        return deptId;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }
    public void setErpUserCode(String erpUserCode) {
        this.erpUserCode = erpUserCode;
    }

    public String getErpUserCode() {
        return erpUserCode;
    }
    public void setLocked(Integer locked) {
        this.locked = locked;
    }

    public Integer getLocked() {
        return locked;
    }
    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Integer getEnable() {
        return enable;
    }
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getCreateDate() {
        return createDate;
    }
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getCreateBy() {
        return createBy;
    }
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getUpdateBy() {
        return updateBy;
    }
    public SysUser() {
        super();
    }

}
