User.java 5.3 KB

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