User.java 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. package com.hssx.cloudmodel.entity;
  2. import com.baomidou.mybatisplus.annotation.TableName;
  3. import com.baomidou.mybatisplus.annotation.IdType;
  4. import com.baomidou.mybatisplus.extension.activerecord.Model;
  5. import com.baomidou.mybatisplus.annotation.TableId;
  6. import java.time.LocalDateTime;
  7. import com.baomidou.mybatisplus.annotation.TableField;
  8. import com.fasterxml.jackson.annotation.JsonFormat;
  9. import java.io.Serializable;
  10. /**
  11. * <p>
  12. *
  13. * </p>
  14. *
  15. * @author 吴涛涛
  16. * @since 2019-08-12
  17. */
  18. @TableName("tb_user")
  19. public class User extends Model<User> {
  20. private static final long serialVersionUID=1L;
  21. /**
  22. * 主键
  23. */
  24. @TableId(value = "id", type = IdType.AUTO)
  25. private Integer id;
  26. /**
  27. * 账号
  28. */
  29. @TableField("account")
  30. private String account;
  31. /**
  32. * 名字
  33. */
  34. @TableField("username")
  35. private String username;
  36. /**
  37. * 密码
  38. */
  39. @TableField("password")
  40. private String password;
  41. /**
  42. * 联系电话
  43. */
  44. @TableField("mobile")
  45. private String mobile;
  46. /**
  47. * 角色类型,-1-超级管理员 0-项目经理 1-普通用户。5-客服方领导,6-客户方普通人员
  48. */
  49. @TableField("role_type")
  50. private Integer roleType;
  51. /**
  52. * 公司id
  53. */
  54. @TableField("company_id")
  55. private Integer companyId;
  56. /**
  57. * 上级id,0-无上级
  58. */
  59. @TableField("parent_id")
  60. private Integer parentId;
  61. /**
  62. * 性别,0-男 1-女
  63. */
  64. @TableField("sex")
  65. private Integer sex;
  66. /**
  67. * 角色名(用户填写)
  68. */
  69. @TableField("role_name")
  70. private String roleName;
  71. /**
  72. * 工作状态
  73. */
  74. @TableField("work_state")
  75. private Integer workState;
  76. /**
  77. * 是否禁用,0-非禁用 1-禁用
  78. */
  79. @TableField("is_disable")
  80. private Integer isDisable;
  81. /**
  82. * 创建时间
  83. */
  84. @TableField("indate")
  85. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  86. private LocalDateTime indate;
  87. /**
  88. * token用户凭证
  89. */
  90. @TableField("head_imgurl")
  91. private String headImgurl;
  92. /**
  93. * 团体名称
  94. */
  95. @TableField("team_name")
  96. private String teamName;
  97. /**
  98. * 所属方,-1-超级管理员,0-资产方 1-生产方
  99. */
  100. @TableField("subordinate_type")
  101. private Integer subordinateType;
  102. /**
  103. * 微信平台的唯一身份
  104. */
  105. @TableField("openid")
  106. private String openid;
  107. public Integer getId() {
  108. return id;
  109. }
  110. public void setId(Integer id) {
  111. this.id = id;
  112. }
  113. public String getAccount() {
  114. return account;
  115. }
  116. public void setAccount(String account) {
  117. this.account = account;
  118. }
  119. public String getUsername() {
  120. return username;
  121. }
  122. public void setUsername(String username) {
  123. this.username = username;
  124. }
  125. public String getPassword() {
  126. return password;
  127. }
  128. public void setPassword(String password) {
  129. this.password = password;
  130. }
  131. public String getMobile() {
  132. return mobile;
  133. }
  134. public void setMobile(String mobile) {
  135. this.mobile = mobile;
  136. }
  137. public Integer getRoleType() {
  138. return roleType;
  139. }
  140. public void setRoleType(Integer roleType) {
  141. this.roleType = roleType;
  142. }
  143. public Integer getCompanyId() {
  144. return companyId;
  145. }
  146. public void setCompanyId(Integer companyId) {
  147. this.companyId = companyId;
  148. }
  149. public Integer getParentId() {
  150. return parentId;
  151. }
  152. public void setParentId(Integer parentId) {
  153. this.parentId = parentId;
  154. }
  155. public Integer getSex() {
  156. return sex;
  157. }
  158. public void setSex(Integer sex) {
  159. this.sex = sex;
  160. }
  161. public String getRoleName() {
  162. return roleName;
  163. }
  164. public void setRoleName(String roleName) {
  165. this.roleName = roleName;
  166. }
  167. public Integer getWorkState() {
  168. return workState;
  169. }
  170. public void setWorkState(Integer workState) {
  171. this.workState = workState;
  172. }
  173. public Integer getIsDisable() {
  174. return isDisable;
  175. }
  176. public void setIsDisable(Integer isDisable) {
  177. this.isDisable = isDisable;
  178. }
  179. public LocalDateTime getIndate() {
  180. return indate;
  181. }
  182. public void setIndate(LocalDateTime indate) {
  183. this.indate = indate;
  184. }
  185. public String getHeadImgurl() {
  186. return headImgurl;
  187. }
  188. public void setHeadImgurl(String headImgurl) {
  189. this.headImgurl = headImgurl;
  190. }
  191. public String getTeamName() {
  192. return teamName;
  193. }
  194. public void setTeamName(String teamName) {
  195. this.teamName = teamName;
  196. }
  197. public Integer getSubordinateType() {
  198. return subordinateType;
  199. }
  200. public void setSubordinateType(Integer subordinateType) {
  201. this.subordinateType = subordinateType;
  202. }
  203. public String getOpenid() {
  204. return openid;
  205. }
  206. public void setOpenid(String openid) {
  207. this.openid = openid;
  208. }
  209. @Override
  210. protected Serializable pkVal() {
  211. return this.id;
  212. }
  213. @Override
  214. public String toString() {
  215. return "User{" +
  216. "id=" + id +
  217. ", account=" + account +
  218. ", username=" + username +
  219. ", password=" + password +
  220. ", mobile=" + mobile +
  221. ", roleType=" + roleType +
  222. ", companyId=" + companyId +
  223. ", parentId=" + parentId +
  224. ", sex=" + sex +
  225. ", roleName=" + roleName +
  226. ", workState=" + workState +
  227. ", isDisable=" + isDisable +
  228. ", indate=" + indate +
  229. ", headImgurl=" + headImgurl +
  230. ", teamName=" + teamName +
  231. ", subordinateType=" + subordinateType +
  232. ", openid=" + openid +
  233. "}";
  234. }
  235. }