From 7b8f5e8d0c50b6771fb9efff962b82c98a212dca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=AF=E5=87=AF?= <371894675@qq.com> Date: Thu, 2 Nov 2023 23:48:31 +0800 Subject: [PATCH] upd sysUser --- .../health/system/common/domain/SysUser.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) 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(); } }