diff --git a/base-system-common/src/main/java/com/health/system/common/domain/SysUser.java b/base-system-common/src/main/java/com/health/system/common/domain/SysUser.java index de901d0..d02ff57 100644 --- a/base-system-common/src/main/java/com/health/system/common/domain/SysUser.java +++ b/base-system-common/src/main/java/com/health/system/common/domain/SysUser.java @@ -313,6 +313,37 @@ public class SysUser extends BaseEntity { 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 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 public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) @@ -336,6 +367,7 @@ public class SysUser extends BaseEntity { .append("remark", getRemark()) .append("dept", getDept()) .append("code",getCode()) + .append("department",getDepartment()) .toString(); } }