f17ae92cb7749cbca3c42ea78e64cdf1753e9169.svn-base 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. package org.jeecg.modules.system.entity;
  2. import java.util.Date;
  3. import com.baomidou.mybatisplus.annotation.TableLogic;
  4. import com.fasterxml.jackson.annotation.JsonIgnore;
  5. import com.fasterxml.jackson.annotation.JsonProperty;
  6. import org.jeecg.common.aspect.annotation.Dict;
  7. import org.jeecgframework.poi.excel.annotation.Excel;
  8. import org.springframework.format.annotation.DateTimeFormat;
  9. import com.baomidou.mybatisplus.annotation.IdType;
  10. import com.baomidou.mybatisplus.annotation.TableId;
  11. import com.fasterxml.jackson.annotation.JsonFormat;
  12. import java.io.Serializable;
  13. import lombok.Data;
  14. import lombok.EqualsAndHashCode;
  15. import lombok.experimental.Accessors;
  16. /**
  17. * <p>
  18. * 用户表
  19. * </p>
  20. *
  21. * @Author scott
  22. * @since 2018-12-20
  23. */
  24. @Data
  25. @EqualsAndHashCode(callSuper = false)
  26. @Accessors(chain = true)
  27. public class SysUser implements Serializable {
  28. private static final long serialVersionUID = 1L;
  29. /**
  30. * id
  31. */
  32. @TableId(type = IdType.ASSIGN_ID)
  33. private String id;
  34. /**
  35. * 登录账号
  36. */
  37. @Excel(name = "登录账号", width = 15)
  38. private String username;
  39. /**
  40. * 真实姓名
  41. */
  42. @Excel(name = "真实姓名", width = 15)
  43. private String realname;
  44. /**
  45. * 密码
  46. */
  47. @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
  48. private String password;
  49. /**
  50. * md5密码盐
  51. */
  52. @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
  53. private String salt;
  54. /**
  55. * 头像
  56. */
  57. @Excel(name = "头像", width = 15,type = 2)
  58. private String avatar;
  59. /**
  60. * 生日
  61. */
  62. @Excel(name = "生日", width = 15, format = "yyyy-MM-dd")
  63. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
  64. @DateTimeFormat(pattern = "yyyy-MM-dd")
  65. private Date birthday;
  66. /**
  67. * 性别(1:男 2:女)
  68. */
  69. @Excel(name = "性别", width = 15,dicCode="sex")
  70. @Dict(dicCode = "sex")
  71. private Integer sex;
  72. /**
  73. * 电子邮件
  74. */
  75. @Excel(name = "电子邮件", width = 15)
  76. private String email;
  77. /**
  78. * 电话
  79. */
  80. @Excel(name = "电话", width = 15)
  81. private String phone;
  82. /**
  83. * 部门code(当前选择登录部门)
  84. */
  85. private String orgCode;
  86. /**部门名称*/
  87. private transient String orgCodeTxt;
  88. /**
  89. * 状态(1:正常 2:冻结 )
  90. */
  91. @Excel(name = "状态", width = 15,dicCode="user_status")
  92. @Dict(dicCode = "user_status")
  93. private Integer status;
  94. /**
  95. * 删除状态(0,正常,1已删除)
  96. */
  97. @Excel(name = "删除状态", width = 15,dicCode="del_flag")
  98. @TableLogic
  99. private Integer delFlag;
  100. /**
  101. * 工号,唯一键
  102. */
  103. // @Excel(name = "工号", width = 15)
  104. private String workNo;
  105. /**
  106. * 职务,关联职务表
  107. */
  108. @Excel(name = "职务", width = 15)
  109. @Dict(dictTable ="sys_position",dicText = "name",dicCode = "code")
  110. private String post;
  111. /**
  112. * 座机号
  113. */
  114. @Excel(name = "座机号", width = 15)
  115. private String telephone;
  116. /**
  117. * 创建人
  118. */
  119. private String createBy;
  120. /**
  121. * 创建时间
  122. */
  123. private Date createTime;
  124. /**
  125. * 更新人
  126. */
  127. private String updateBy;
  128. /**
  129. * 更新时间
  130. */
  131. private Date updateTime;
  132. /**
  133. * 同步工作流引擎1同步0不同步
  134. */
  135. private Integer activitiSync;
  136. /**
  137. * 身份(0 普通成员 1 上级)
  138. */
  139. @Excel(name="(1普通成员 2上级)",width = 15)
  140. private Integer userIdentity;
  141. /**
  142. * 负责部门
  143. */
  144. @Excel(name="负责部门",width = 15,dictTable ="sys_depart",dicText = "depart_name",dicCode = "id")
  145. @Dict(dictTable ="sys_depart",dicText = "depart_name",dicCode = "id")
  146. private String departIds;
  147. /**
  148. * 多租户id配置,编辑用户的时候设置
  149. */
  150. private String relTenantIds;
  151. /**设备id uniapp推送用*/
  152. private String clientId;
  153. }