From 9d9b867d5a90228a6f7c1178ae876ee707acb693 Mon Sep 17 00:00:00 2001
From: zhangheng <3226558941@qq.com>
Date: Mon, 4 Mar 2024 17:40:44 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=A7=91=E5=AE=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../xinelu/common/core/domain/entity/SysUser.java | 13 +++++++++++++
.../main/resources/mapper/system/SysUserMapper.xml | 7 ++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/postdischarge-common/src/main/java/com/xinelu/common/core/domain/entity/SysUser.java b/postdischarge-common/src/main/java/com/xinelu/common/core/domain/entity/SysUser.java
index ec3e7f4f..9b87ffea 100644
--- a/postdischarge-common/src/main/java/com/xinelu/common/core/domain/entity/SysUser.java
+++ b/postdischarge-common/src/main/java/com/xinelu/common/core/domain/entity/SysUser.java
@@ -144,6 +144,11 @@ public class SysUser extends BaseEntity {
*/
private Long agencyId;
+ /**
+ * 机构id
+ */
+ private Long departmentId;
+
public SysUser() {
}
@@ -168,6 +173,14 @@ public class SysUser extends BaseEntity {
this.agencyId = agencyId;
}
+ public Long getDepartmentId() {
+ return departmentId;
+ }
+
+ public void setDepartmentId(Long departmentId) {
+ this.departmentId = departmentId;
+ }
+
public boolean isAdmin() {
return isAdmin(this.userId);
}
diff --git a/postdischarge-system/src/main/resources/mapper/system/SysUserMapper.xml b/postdischarge-system/src/main/resources/mapper/system/SysUserMapper.xml
index a840a32c..8b6e9c10 100644
--- a/postdischarge-system/src/main/resources/mapper/system/SysUserMapper.xml
+++ b/postdischarge-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -26,6 +26,7 @@
+
@@ -69,6 +70,7 @@
u.user_card_no,
u.user_birth_date,
u.agency_id,
+ u.department_id,
d.dept_id,
d.parent_id,
d.ancestors,
@@ -91,7 +93,7 @@