upd sysUser

master
冯凯 2023-11-02 23:48:31 +08:00
parent 268766964a
commit 7b8f5e8d0c
1 changed files with 32 additions and 0 deletions

View File

@ -313,6 +313,37 @@ public class SysUser extends BaseEntity {
this.code = code; this.code = code;
} }
public Department getDepartment() {
return department;
}
public void setDepartment(Department department) {
this.department = department;
}
public SysUser(Long userId, Long deptId, String userName, String nickName, String email, String phonenumber, String sex, String avatar, String password, String code, String status, String delFlag, String loginIp, Date loginDate, SysDept dept, Department department, List<SysRole> roles, Long[] roleIds, Long[] postIds, Long roleId) {
this.userId = userId;
this.deptId = deptId;
this.userName = userName;
this.nickName = nickName;
this.email = email;
this.phonenumber = phonenumber;
this.sex = sex;
this.avatar = avatar;
this.password = password;
this.code = code;
this.status = status;
this.delFlag = delFlag;
this.loginIp = loginIp;
this.loginDate = loginDate;
this.dept = dept;
this.department = department;
this.roles = roles;
this.roleIds = roleIds;
this.postIds = postIds;
this.roleId = roleId;
}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
@ -336,6 +367,7 @@ public class SysUser extends BaseEntity {
.append("remark", getRemark()) .append("remark", getRemark())
.append("dept", getDept()) .append("dept", getDept())
.append("code",getCode()) .append("code",getCode())
.append("department",getDepartment())
.toString(); .toString();
} }
} }