content: package com.company.project.entity;
  
  import com.baomidou.mybatisplus.annotation.FieldFill;
  import com.baomidou.mybatisplus.annotation.TableField;
  import com.baomidou.mybatisplus.annotation.TableId;
  import lombok.Data;
  import lombok.EqualsAndHashCode;
  
  import javax.validation.constraints.NotBlank;
  import java.io.Serializable;
  import java.util.Date;
  import java.util.List;
  
  /**
   * 用户
   *
   * @author wenbin
   * @version V1.0
   * @date 2020年3月18日
   */
  @EqualsAndHashCode(callSuper = true)
  @Data
  public class SysUser extends BaseEntity implements Serializable {
      @TableId
      private String id;
  
      @NotBlank(message = "账号不能为空")
      private String username;
  
      private String salt;
  
      @NotBlank(message = "密码不能为空")
      private String password;
  
      @TableField(exist = false)
      private String oldPwd;
  
      @TableField(exist = false)
      private String newPwd;
  
      private String phone;
  
      private String deptId;
  
      @TableField(exist = false)
      private String deptName;
  
      @TableField(exist = false)
      private String deptNo;
  
  
      private String realName;
  
      private String nickName;
  
      private String email;
  
      private Integer status;
  
      private Integer sex;
  
      @TableField(fill = FieldFill.INSERT)
      private Integer deleted;
  
      private String createId;
  
      private String updateId;
  
      private Integer createWhere;
  
      @TableField(fill = FieldFill.INSERT)
      private Date createTime;
  
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date updateTime;
  
      @TableField(exist = false)
      private String startTime;
  
      @TableField(exist = false)
      private String endTime;
  
      @TableField(exist = false)
      private List<String> roleIds;
  
      @TableField(exist = false)
      private String captcha;
  }