|
|
@@ -0,0 +1,386 @@
|
|
|
+package com.ydtech.modules.admin.model.po;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import lombok.Data;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 用户信息表
|
|
|
+ * @TableName sys_user
|
|
|
+ */
|
|
|
+@TableName(value ="sys_user")
|
|
|
+@Data
|
|
|
+public class SysUserZzbOrZgd implements Serializable {
|
|
|
+ /**
|
|
|
+ * 用户ID
|
|
|
+ */
|
|
|
+ @TableId(type = IdType.AUTO)
|
|
|
+ private Long userId;
|
|
|
+
|
|
|
+
|
|
|
+ @TableField(exist=false)
|
|
|
+ private String id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 部门ID
|
|
|
+ */
|
|
|
+ private Long deptId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 用户账号
|
|
|
+ */
|
|
|
+ private String userName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 用户类型(00:超级管理员)(01:分级普通用户)(02:普通成员)(03:自建角色成员)
|
|
|
+ */
|
|
|
+ private String userType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 工号
|
|
|
+ */
|
|
|
+ private String jobNumber;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 数据范围(1:全部数据权限 2:自定义数据权限 3:本部门数据权限 4:本部门及以下数据权限 5:本人数据)
|
|
|
+ */
|
|
|
+ private Integer dataScope;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 用户昵称
|
|
|
+ */
|
|
|
+ private String nickName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 用户邮箱
|
|
|
+ */
|
|
|
+ private String email;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 手机号码
|
|
|
+ */
|
|
|
+ private String phoneNumber;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 用户性别(0男 1女 2未知)
|
|
|
+ */
|
|
|
+ private String sex;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 头像地址
|
|
|
+ */
|
|
|
+ private String avatar;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 密码
|
|
|
+ */
|
|
|
+ private String password;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 帐号状态(0正常 1停用)
|
|
|
+ */
|
|
|
+ private String status;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 最后登陆IP
|
|
|
+ */
|
|
|
+ private String loginIp;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 最后登陆时间
|
|
|
+ */
|
|
|
+ private Date loginDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 企业微信返回的员工id
|
|
|
+ */
|
|
|
+ private String weUserId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 职位
|
|
|
+ */
|
|
|
+ private String position;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 头像缩略图
|
|
|
+ */
|
|
|
+ private String thumbAvatar;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 企业邮箱
|
|
|
+ */
|
|
|
+ private String bizMail;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 直属上级
|
|
|
+ */
|
|
|
+ private String leader;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 座机
|
|
|
+ */
|
|
|
+ private String telephone;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 扩展属性
|
|
|
+ */
|
|
|
+ private String extAttr;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 1=已激活,2=已禁用,4=未激活,5=退出企业
|
|
|
+ */
|
|
|
+ private String weUserStatus;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 员工二维码链接
|
|
|
+ */
|
|
|
+ private String qrCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 成员对外属性
|
|
|
+ */
|
|
|
+ private String externalProfile;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 对外职务
|
|
|
+ */
|
|
|
+ private String externalPosition;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 地址
|
|
|
+ */
|
|
|
+ private String address;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * openUserId
|
|
|
+ */
|
|
|
+ private String openUserid;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 离职状态员工,数据分配状态:0:未分配;1:已分配
|
|
|
+ */
|
|
|
+ private Integer isAllocate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 员工离职时间
|
|
|
+ */
|
|
|
+ private Date dimissionTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 是否离职1:是;0:否
|
|
|
+ */
|
|
|
+ private Integer isUserLeave;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 是否开启会话存档 0-未开启 1-开启
|
|
|
+ */
|
|
|
+ private Integer isOpenChat;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 创建人
|
|
|
+ */
|
|
|
+ private String createBy;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 创建人id
|
|
|
+ */
|
|
|
+ private Long createById;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 创建时间
|
|
|
+ */
|
|
|
+ private Date createTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 更新人
|
|
|
+ */
|
|
|
+ private String updateBy;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 更新人id
|
|
|
+ */
|
|
|
+ private Long updateById;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 更新时间
|
|
|
+ */
|
|
|
+ private Date updateTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 备注
|
|
|
+ */
|
|
|
+ private String remark;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 删除标志(0代表存在 1代表删除)
|
|
|
+ */
|
|
|
+ private Integer delFlag;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 客服接待状态。1:接待中,2:停止接待
|
|
|
+ */
|
|
|
+ private Integer kfStatus;
|
|
|
+
|
|
|
+ @TableField(exist = false)
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object that) {
|
|
|
+ if (this == that) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (that == null) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (getClass() != that.getClass()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ SysUserZzbOrZgd other = (SysUserZzbOrZgd) that;
|
|
|
+ return (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
|
|
|
+ && (this.getDeptId() == null ? other.getDeptId() == null : this.getDeptId().equals(other.getDeptId()))
|
|
|
+ && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
|
|
|
+ && (this.getUserType() == null ? other.getUserType() == null : this.getUserType().equals(other.getUserType()))
|
|
|
+ && (this.getJobNumber() == null ? other.getJobNumber() == null : this.getJobNumber().equals(other.getJobNumber()))
|
|
|
+ && (this.getDataScope() == null ? other.getDataScope() == null : this.getDataScope().equals(other.getDataScope()))
|
|
|
+ && (this.getNickName() == null ? other.getNickName() == null : this.getNickName().equals(other.getNickName()))
|
|
|
+ && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
|
|
|
+ && (this.getPhoneNumber() == null ? other.getPhoneNumber() == null : this.getPhoneNumber().equals(other.getPhoneNumber()))
|
|
|
+ && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
|
|
|
+ && (this.getAvatar() == null ? other.getAvatar() == null : this.getAvatar().equals(other.getAvatar()))
|
|
|
+ && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
|
|
|
+ && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
|
|
|
+ && (this.getLoginIp() == null ? other.getLoginIp() == null : this.getLoginIp().equals(other.getLoginIp()))
|
|
|
+ && (this.getLoginDate() == null ? other.getLoginDate() == null : this.getLoginDate().equals(other.getLoginDate()))
|
|
|
+ && (this.getWeUserId() == null ? other.getWeUserId() == null : this.getWeUserId().equals(other.getWeUserId()))
|
|
|
+ && (this.getPosition() == null ? other.getPosition() == null : this.getPosition().equals(other.getPosition()))
|
|
|
+ && (this.getThumbAvatar() == null ? other.getThumbAvatar() == null : this.getThumbAvatar().equals(other.getThumbAvatar()))
|
|
|
+ && (this.getBizMail() == null ? other.getBizMail() == null : this.getBizMail().equals(other.getBizMail()))
|
|
|
+ && (this.getLeader() == null ? other.getLeader() == null : this.getLeader().equals(other.getLeader()))
|
|
|
+ && (this.getTelephone() == null ? other.getTelephone() == null : this.getTelephone().equals(other.getTelephone()))
|
|
|
+ && (this.getExtAttr() == null ? other.getExtAttr() == null : this.getExtAttr().equals(other.getExtAttr()))
|
|
|
+ && (this.getWeUserStatus() == null ? other.getWeUserStatus() == null : this.getWeUserStatus().equals(other.getWeUserStatus()))
|
|
|
+ && (this.getQrCode() == null ? other.getQrCode() == null : this.getQrCode().equals(other.getQrCode()))
|
|
|
+ && (this.getExternalProfile() == null ? other.getExternalProfile() == null : this.getExternalProfile().equals(other.getExternalProfile()))
|
|
|
+ && (this.getExternalPosition() == null ? other.getExternalPosition() == null : this.getExternalPosition().equals(other.getExternalPosition()))
|
|
|
+ && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
|
|
|
+ && (this.getOpenUserid() == null ? other.getOpenUserid() == null : this.getOpenUserid().equals(other.getOpenUserid()))
|
|
|
+ && (this.getIsAllocate() == null ? other.getIsAllocate() == null : this.getIsAllocate().equals(other.getIsAllocate()))
|
|
|
+ && (this.getDimissionTime() == null ? other.getDimissionTime() == null : this.getDimissionTime().equals(other.getDimissionTime()))
|
|
|
+ && (this.getIsUserLeave() == null ? other.getIsUserLeave() == null : this.getIsUserLeave().equals(other.getIsUserLeave()))
|
|
|
+ && (this.getIsOpenChat() == null ? other.getIsOpenChat() == null : this.getIsOpenChat().equals(other.getIsOpenChat()))
|
|
|
+ && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
|
|
|
+ && (this.getCreateById() == null ? other.getCreateById() == null : this.getCreateById().equals(other.getCreateById()))
|
|
|
+ && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
|
|
+ && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
|
|
|
+ && (this.getUpdateById() == null ? other.getUpdateById() == null : this.getUpdateById().equals(other.getUpdateById()))
|
|
|
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
|
|
|
+ && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
|
|
|
+ && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()))
|
|
|
+ && (this.getKfStatus() == null ? other.getKfStatus() == null : this.getKfStatus().equals(other.getKfStatus()));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ final int prime = 31;
|
|
|
+ int result = 1;
|
|
|
+ result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
|
|
|
+ result = prime * result + ((getDeptId() == null) ? 0 : getDeptId().hashCode());
|
|
|
+ result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
|
|
|
+ result = prime * result + ((getUserType() == null) ? 0 : getUserType().hashCode());
|
|
|
+ result = prime * result + ((getJobNumber() == null) ? 0 : getJobNumber().hashCode());
|
|
|
+ result = prime * result + ((getDataScope() == null) ? 0 : getDataScope().hashCode());
|
|
|
+ result = prime * result + ((getNickName() == null) ? 0 : getNickName().hashCode());
|
|
|
+ result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
|
|
|
+ result = prime * result + ((getPhoneNumber() == null) ? 0 : getPhoneNumber().hashCode());
|
|
|
+ result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
|
|
|
+ result = prime * result + ((getAvatar() == null) ? 0 : getAvatar().hashCode());
|
|
|
+ result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
|
|
|
+ result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
|
|
|
+ result = prime * result + ((getLoginIp() == null) ? 0 : getLoginIp().hashCode());
|
|
|
+ result = prime * result + ((getLoginDate() == null) ? 0 : getLoginDate().hashCode());
|
|
|
+ result = prime * result + ((getWeUserId() == null) ? 0 : getWeUserId().hashCode());
|
|
|
+ result = prime * result + ((getPosition() == null) ? 0 : getPosition().hashCode());
|
|
|
+ result = prime * result + ((getThumbAvatar() == null) ? 0 : getThumbAvatar().hashCode());
|
|
|
+ result = prime * result + ((getBizMail() == null) ? 0 : getBizMail().hashCode());
|
|
|
+ result = prime * result + ((getLeader() == null) ? 0 : getLeader().hashCode());
|
|
|
+ result = prime * result + ((getTelephone() == null) ? 0 : getTelephone().hashCode());
|
|
|
+ result = prime * result + ((getExtAttr() == null) ? 0 : getExtAttr().hashCode());
|
|
|
+ result = prime * result + ((getWeUserStatus() == null) ? 0 : getWeUserStatus().hashCode());
|
|
|
+ result = prime * result + ((getQrCode() == null) ? 0 : getQrCode().hashCode());
|
|
|
+ result = prime * result + ((getExternalProfile() == null) ? 0 : getExternalProfile().hashCode());
|
|
|
+ result = prime * result + ((getExternalPosition() == null) ? 0 : getExternalPosition().hashCode());
|
|
|
+ result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
|
|
|
+ result = prime * result + ((getOpenUserid() == null) ? 0 : getOpenUserid().hashCode());
|
|
|
+ result = prime * result + ((getIsAllocate() == null) ? 0 : getIsAllocate().hashCode());
|
|
|
+ result = prime * result + ((getDimissionTime() == null) ? 0 : getDimissionTime().hashCode());
|
|
|
+ result = prime * result + ((getIsUserLeave() == null) ? 0 : getIsUserLeave().hashCode());
|
|
|
+ result = prime * result + ((getIsOpenChat() == null) ? 0 : getIsOpenChat().hashCode());
|
|
|
+ result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
|
|
|
+ result = prime * result + ((getCreateById() == null) ? 0 : getCreateById().hashCode());
|
|
|
+ result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
|
|
+ result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
|
|
|
+ result = prime * result + ((getUpdateById() == null) ? 0 : getUpdateById().hashCode());
|
|
|
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
|
|
|
+ result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
|
|
|
+ result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
|
|
|
+ result = prime * result + ((getKfStatus() == null) ? 0 : getKfStatus().hashCode());
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ sb.append(getClass().getSimpleName());
|
|
|
+ sb.append(" [");
|
|
|
+ sb.append("Hash = ").append(hashCode());
|
|
|
+ sb.append(", userId=").append(userId);
|
|
|
+ sb.append(", deptId=").append(deptId);
|
|
|
+ sb.append(", userName=").append(userName);
|
|
|
+ sb.append(", userType=").append(userType);
|
|
|
+ sb.append(", jobNumber=").append(jobNumber);
|
|
|
+ sb.append(", dataScope=").append(dataScope);
|
|
|
+ sb.append(", nickName=").append(nickName);
|
|
|
+ sb.append(", email=").append(email);
|
|
|
+ sb.append(", phoneNumber=").append(phoneNumber);
|
|
|
+ sb.append(", sex=").append(sex);
|
|
|
+ sb.append(", avatar=").append(avatar);
|
|
|
+ sb.append(", password=").append(password);
|
|
|
+ sb.append(", status=").append(status);
|
|
|
+ sb.append(", loginIp=").append(loginIp);
|
|
|
+ sb.append(", loginDate=").append(loginDate);
|
|
|
+ sb.append(", weUserId=").append(weUserId);
|
|
|
+ sb.append(", position=").append(position);
|
|
|
+ sb.append(", thumbAvatar=").append(thumbAvatar);
|
|
|
+ sb.append(", bizMail=").append(bizMail);
|
|
|
+ sb.append(", leader=").append(leader);
|
|
|
+ sb.append(", telephone=").append(telephone);
|
|
|
+ sb.append(", extAttr=").append(extAttr);
|
|
|
+ sb.append(", weUserStatus=").append(weUserStatus);
|
|
|
+ sb.append(", qrCode=").append(qrCode);
|
|
|
+ sb.append(", externalProfile=").append(externalProfile);
|
|
|
+ sb.append(", externalPosition=").append(externalPosition);
|
|
|
+ sb.append(", address=").append(address);
|
|
|
+ sb.append(", openUserid=").append(openUserid);
|
|
|
+ sb.append(", isAllocate=").append(isAllocate);
|
|
|
+ sb.append(", dimissionTime=").append(dimissionTime);
|
|
|
+ sb.append(", isUserLeave=").append(isUserLeave);
|
|
|
+ sb.append(", isOpenChat=").append(isOpenChat);
|
|
|
+ sb.append(", createBy=").append(createBy);
|
|
|
+ sb.append(", createById=").append(createById);
|
|
|
+ sb.append(", createTime=").append(createTime);
|
|
|
+ sb.append(", updateBy=").append(updateBy);
|
|
|
+ sb.append(", updateById=").append(updateById);
|
|
|
+ sb.append(", updateTime=").append(updateTime);
|
|
|
+ sb.append(", remark=").append(remark);
|
|
|
+ sb.append(", delFlag=").append(delFlag);
|
|
|
+ sb.append(", kfStatus=").append(kfStatus);
|
|
|
+ sb.append(", serialVersionUID=").append(serialVersionUID);
|
|
|
+ sb.append("]");
|
|
|
+ return sb.toString();
|
|
|
+ }
|
|
|
+}
|