|
@@ -0,0 +1,263 @@
|
|
|
+package com.usky.entity.sys;
|
|
|
+
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+
|
|
|
+import javax.persistence.*;
|
|
|
+import java.sql.Timestamp;
|
|
|
+import java.util.Objects;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author laowo
|
|
|
+ * @version v1.0
|
|
|
+ * @date 2021/8/19 14:03
|
|
|
+ * @description TODO
|
|
|
+ **/
|
|
|
+
|
|
|
+@Entity
|
|
|
+@Table(name = "sys_user", schema = "jx_cover", catalog = "")
|
|
|
+public class SysUserDTO {
|
|
|
+ private long userId;
|
|
|
+ private Long deptId;
|
|
|
+ private String loginName;
|
|
|
+ private String userName;
|
|
|
+ private String userType;
|
|
|
+ private String email;
|
|
|
+ private String phonenumber;
|
|
|
+ private String sex;
|
|
|
+ private String avatar;
|
|
|
+ private String password;
|
|
|
+ private String salt;
|
|
|
+ private String status;
|
|
|
+ private String delFlag;
|
|
|
+ private String loginIp;
|
|
|
+ private Timestamp loginDate;
|
|
|
+ private Timestamp pwdUpdateDate;
|
|
|
+ private String createBy;
|
|
|
+ private Timestamp createTime;
|
|
|
+ private String updateBy;
|
|
|
+ private Timestamp updateTime;
|
|
|
+ private String remark;
|
|
|
+
|
|
|
+ @Id
|
|
|
+ @Column(name = "user_id", nullable = false)
|
|
|
+ public long getUserId() {
|
|
|
+ return userId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUserId(long userId) {
|
|
|
+ this.userId = userId;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "dept_id", nullable = true)
|
|
|
+ public Long getDeptId() {
|
|
|
+ return deptId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDeptId(Long deptId) {
|
|
|
+ this.deptId = deptId;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "login_name", nullable = false, length = 30)
|
|
|
+ public String getLoginName() {
|
|
|
+ return loginName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setLoginName(String loginName) {
|
|
|
+ this.loginName = loginName;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "user_name", nullable = true, length = 30)
|
|
|
+ public String getUserName() {
|
|
|
+ return userName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUserName(String userName) {
|
|
|
+ this.userName = userName;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "user_type", nullable = true, length = 2)
|
|
|
+ public String getUserType() {
|
|
|
+ return userType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUserType(String userType) {
|
|
|
+ this.userType = userType;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "email", nullable = true, length = 50)
|
|
|
+ public String getEmail() {
|
|
|
+ return email;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setEmail(String email) {
|
|
|
+ this.email = email;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "phonenumber", nullable = true, length = 11)
|
|
|
+ public String getPhonenumber() {
|
|
|
+ return phonenumber;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPhonenumber(String phonenumber) {
|
|
|
+ this.phonenumber = phonenumber;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "sex", nullable = true, length = 1)
|
|
|
+ public String getSex() {
|
|
|
+ return sex;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSex(String sex) {
|
|
|
+ this.sex = sex;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "avatar", nullable = true, length = 100)
|
|
|
+ public String getAvatar() {
|
|
|
+ return avatar;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAvatar(String avatar) {
|
|
|
+ this.avatar = avatar;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "password", nullable = true, length = 50)
|
|
|
+ public String getPassword() {
|
|
|
+ return password;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPassword(String password) {
|
|
|
+ this.password = password;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "salt", nullable = true, length = 20)
|
|
|
+ public String getSalt() {
|
|
|
+ return salt;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSalt(String salt) {
|
|
|
+ this.salt = salt;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "status", nullable = true, length = 1)
|
|
|
+ public String getStatus() {
|
|
|
+ return status;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setStatus(String status) {
|
|
|
+ this.status = status;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "del_flag", nullable = true, length = 1)
|
|
|
+ public String getDelFlag() {
|
|
|
+ return delFlag;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDelFlag(String delFlag) {
|
|
|
+ this.delFlag = delFlag;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "login_ip", nullable = true, length = 128)
|
|
|
+ public String getLoginIp() {
|
|
|
+ return loginIp;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setLoginIp(String loginIp) {
|
|
|
+ this.loginIp = loginIp;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "login_date", nullable = true)
|
|
|
+ public Timestamp getLoginDate() {
|
|
|
+ return loginDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setLoginDate(Timestamp loginDate) {
|
|
|
+ this.loginDate = loginDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "pwd_update_date", nullable = true)
|
|
|
+ public Timestamp getPwdUpdateDate() {
|
|
|
+ return pwdUpdateDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPwdUpdateDate(Timestamp pwdUpdateDate) {
|
|
|
+ this.pwdUpdateDate = pwdUpdateDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "create_by", nullable = true, length = 64)
|
|
|
+ public String getCreateBy() {
|
|
|
+ return createBy;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCreateBy(String createBy) {
|
|
|
+ this.createBy = createBy;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "create_time", nullable = true)
|
|
|
+ public Timestamp getCreateTime() {
|
|
|
+ return createTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCreateTime(Timestamp createTime) {
|
|
|
+ this.createTime = createTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "update_by", nullable = true, length = 64)
|
|
|
+ public String getUpdateBy() {
|
|
|
+ return updateBy;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUpdateBy(String updateBy) {
|
|
|
+ this.updateBy = updateBy;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "update_time", nullable = true)
|
|
|
+ public Timestamp getUpdateTime() {
|
|
|
+ return updateTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUpdateTime(Timestamp updateTime) {
|
|
|
+ this.updateTime = updateTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Basic
|
|
|
+ @Column(name = "remark", nullable = true, length = 500)
|
|
|
+ public String getRemark() {
|
|
|
+ return remark;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setRemark(String remark) {
|
|
|
+ this.remark = remark;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object o) {
|
|
|
+ if (this == o) return true;
|
|
|
+ if (o == null || getClass() != o.getClass()) return false;
|
|
|
+ SysUserDTO that = (SysUserDTO) o;
|
|
|
+ return userId == that.userId && Objects.equals(deptId, that.deptId) && Objects.equals(loginName, that.loginName) && Objects.equals(userName, that.userName) && Objects.equals(userType, that.userType) && Objects.equals(email, that.email) && Objects.equals(phonenumber, that.phonenumber) && Objects.equals(sex, that.sex) && Objects.equals(avatar, that.avatar) && Objects.equals(password, that.password) && Objects.equals(salt, that.salt) && Objects.equals(status, that.status) && Objects.equals(delFlag, that.delFlag) && Objects.equals(loginIp, that.loginIp) && Objects.equals(loginDate, that.loginDate) && Objects.equals(pwdUpdateDate, that.pwdUpdateDate) && Objects.equals(createBy, that.createBy) && Objects.equals(createTime, that.createTime) && Objects.equals(updateBy, that.updateBy) && Objects.equals(updateTime, that.updateTime) && Objects.equals(remark, that.remark);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ return Objects.hash(userId, deptId, loginName, userName, userType, email, phonenumber, sex, avatar, password, salt, status, delFlag, loginIp, loginDate, pwdUpdateDate, createBy, createTime, updateBy, updateTime, remark);
|
|
|
+ }
|
|
|
+}
|