From 680a9877fe64c40aced1f4e04ea34056fac204fc Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Thu, 19 Mar 2026 14:03:30 +0800
Subject: [PATCH] 支持多部门
---
gkhy-common/src/main/java/com/gkhy/common/core/domain/entity/SysUser.java | 32 +++++++++++++++++++++-----------
1 files changed, 21 insertions(+), 11 deletions(-)
diff --git a/gkhy-common/src/main/java/com/gkhy/common/core/domain/entity/SysUser.java b/gkhy-common/src/main/java/com/gkhy/common/core/domain/entity/SysUser.java
index 6623d2e..ac50dfe 100644
--- a/gkhy-common/src/main/java/com/gkhy/common/core/domain/entity/SysUser.java
+++ b/gkhy-common/src/main/java/com/gkhy/common/core/domain/entity/SysUser.java
@@ -77,7 +77,7 @@
@Excel(name = "部门名称", targetAttr = "deptName", type = Type.EXPORT),
@Excel(name = "部门负责人", targetAttr = "leader", type = Type.EXPORT)
})
- private SysDept dept;
+ private List<SysDept> depts;
@ApiModelProperty("角色key")
private String roleKey;
@@ -87,6 +87,9 @@
/** 角色组 */
private Long[] roleIds;
+
+ /** 部门组 */
+ private Long[] deptIds;
/** 岗位组 */
private Long[] postIds;
@@ -252,15 +255,6 @@
this.loginDate = loginDate;
}
- public SysDept getDept()
- {
- return dept;
- }
-
- public void setDept(SysDept dept)
- {
- this.dept = dept;
- }
public List<SysRole> getRoles()
{
@@ -330,7 +324,23 @@
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
- .append("dept", getDept())
+ .append("depts", getDepts())
.toString();
}
+
+ public List<SysDept> getDepts() {
+ return depts;
+ }
+
+ public void setDepts(List<SysDept> depts) {
+ this.depts = depts;
+ }
+
+ public Long[] getDeptIds() {
+ return deptIds;
+ }
+
+ public void setDeptIds(Long[] deptIds) {
+ this.deptIds = deptIds;
+ }
}
--
Gitblit v1.9.2