Admin.java 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. package com.goafanti.common.model;
  2. import java.util.Date;
  3. import org.apache.commons.lang3.time.DateFormatUtils;
  4. import com.fasterxml.jackson.annotation.JsonIgnore;
  5. import com.goafanti.common.constant.AFTConstants;
  6. public class Admin extends BaseModel implements AftUser {
  7. private static final long serialVersionUID = 1L;
  8. private String id;
  9. /**
  10. * 手机�?(登录帐号)
  11. */
  12. private String mobile;
  13. /**
  14. * 用户�?
  15. */
  16. private String name;
  17. /**
  18. * 密码
  19. */
  20. private String password;
  21. /**
  22. * 邮箱
  23. */
  24. private String email;
  25. /**
  26. * 创建时间
  27. */
  28. private Date createTime;
  29. /**
  30. * 员工工号
  31. */
  32. private Integer number;
  33. /**
  34. * �?在省�?
  35. */
  36. private Integer province;
  37. /**
  38. * 岗位
  39. */
  40. private String position;
  41. /**
  42. * 上级管理用户ID
  43. */
  44. private String superiorId;
  45. /**
  46. * 上级管理用户名称
  47. */
  48. private String superior;
  49. /**
  50. * �?在市
  51. */
  52. private Integer city;
  53. /**
  54. * 部门管理
  55. */
  56. private String departmentId;
  57. /**
  58. * 用户状�??
  59. */
  60. private String status;
  61. /**
  62. * 用户编号
  63. */
  64. private String userNo;
  65. /**
  66. * 职务
  67. */
  68. private String duty;
  69. /**
  70. * 地区
  71. */
  72. private String district;
  73. /**
  74. * 用户头像
  75. */
  76. private String headPortraitUrl;
  77. /**
  78. * This field was generated by MyBatis Generator. This field corresponds to the database column admin.contact_mobile
  79. * @mbg.generated Wed Jun 13 10:27:07 CST 2018
  80. */
  81. private String contactMobile;
  82. /**
  83. * This method was generated by MyBatis Generator. This method returns the value of the database column admin.id
  84. * @return the value of admin.id
  85. * @mbg.generated Wed Jun 13 10:27:07 CST 2018
  86. */
  87. private Date lastLoginTime;
  88. /**
  89. * This method was generated by MyBatis Generator. This method returns the value of the database column admin.contact_mobile
  90. * @return the value of admin.contact_mobile
  91. * @mbg.generated Wed Jun 13 10:27:07 CST 2018
  92. */
  93. public String getContactMobile() {
  94. return contactMobile;
  95. }
  96. /**
  97. * This method was generated by MyBatis Generator. This method sets the value of the database column admin.contact_mobile
  98. * @param contactMobile the value for admin.contact_mobile
  99. * @mbg.generated Wed Jun 13 10:27:07 CST 2018
  100. */
  101. public void setContactMobile(String contactMobile) {
  102. this.contactMobile = contactMobile;
  103. }
  104. public String getSuperior() {
  105. return superior;
  106. }
  107. public void setSuperior(String superior) {
  108. this.superior = superior;
  109. }
  110. public String getHeadPortraitUrl() {
  111. return headPortraitUrl;
  112. }
  113. public void setHeadPortraitUrl(String headPortraitUrl) {
  114. this.headPortraitUrl = headPortraitUrl;
  115. }
  116. public String getDistrict() {
  117. return district;
  118. }
  119. public void setDistrict(String district) {
  120. this.district = district;
  121. }
  122. public String getStatus() {
  123. return status;
  124. }
  125. public void setStatus(String status) {
  126. this.status = status;
  127. }
  128. public String getUserNo() {
  129. return "";
  130. }
  131. public void setUserNo(String userNo) {
  132. this.userNo = userNo;
  133. }
  134. public String getDuty() {
  135. return duty;
  136. }
  137. public void setDuty(String duty) {
  138. this.duty = duty;
  139. }
  140. public String getSuperiorId() {
  141. return superiorId;
  142. }
  143. public void setSuperiorId(String superiorId) {
  144. this.superiorId = superiorId;
  145. }
  146. public String getPosition() {
  147. return position;
  148. }
  149. public void setPosition(String position) {
  150. this.position = position;
  151. }
  152. public String getId() {
  153. return id;
  154. }
  155. public void setId(String id) {
  156. this.id = id;
  157. }
  158. public String getMobile() {
  159. return mobile;
  160. }
  161. public void setMobile(String mobile) {
  162. this.mobile = mobile;
  163. }
  164. public String getName() {
  165. return name;
  166. }
  167. public void setName(String name) {
  168. this.name = name;
  169. }
  170. @JsonIgnore
  171. public String getPassword() {
  172. return password;
  173. }
  174. public void setPassword(String password) {
  175. this.password = password;
  176. }
  177. public String getEmail() {
  178. return email;
  179. }
  180. public void setEmail(String email) {
  181. this.email = email;
  182. }
  183. public Date getCreateTime() {
  184. return createTime;
  185. }
  186. public void setCreateTime(Date createTime) {
  187. this.createTime = createTime;
  188. }
  189. public Integer getNumber() {
  190. return number;
  191. }
  192. public void setNumber(Integer number) {
  193. this.number = number;
  194. }
  195. public Integer getProvince() {
  196. return province;
  197. }
  198. public void setProvince(Integer province) {
  199. this.province = province;
  200. }
  201. public Integer getCity() {
  202. return city;
  203. }
  204. public void setCity(Integer city) {
  205. this.city = city;
  206. }
  207. public String getDepartmentId() {
  208. return departmentId;
  209. }
  210. public void setDepartmentId(String departmentId) {
  211. this.departmentId = departmentId;
  212. }
  213. // 创建时间
  214. public String getCreateTimeFormattedDate() {
  215. if (this.createTime == null) {
  216. return null;
  217. } else {
  218. return DateFormatUtils.format(this.getCreateTime(), AFTConstants.YYYYMMDDHHMMSS);
  219. }
  220. }
  221. public void setCreateTimeFormattedDate(String createTimeFormattedDate) {
  222. }
  223. @JsonIgnore
  224. @Override
  225. public String getAid() {
  226. return null;
  227. }
  228. @Override
  229. public Integer getType() {
  230. return null;
  231. }
  232. public Date getLastLoginTime() {
  233. return lastLoginTime;
  234. }
  235. public void setLastLoginTime(Date lastLoginTime) {
  236. this.lastLoginTime = lastLoginTime;
  237. }
  238. }