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/model/LoginUser.java |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/gkhy-common/src/main/java/com/gkhy/common/core/domain/model/LoginUser.java b/gkhy-common/src/main/java/com/gkhy/common/core/domain/model/LoginUser.java
index 30eb1a5..e311624 100644
--- a/gkhy-common/src/main/java/com/gkhy/common/core/domain/model/LoginUser.java
+++ b/gkhy-common/src/main/java/com/gkhy/common/core/domain/model/LoginUser.java
@@ -66,6 +66,8 @@
      */
     private Set<String> permissions;
 
+    private Long[] deptIds;
+
     /**
      * 用户信息
      */
@@ -87,6 +89,14 @@
         this.deptId = deptId;
         this.user = user;
         this.permissions = permissions;
+    }
+
+    public LoginUser(Long userId, Long deptId, SysUser user, Set<String> permissions, Long[] deptIds) {
+        this.userId = userId;
+        this.deptId = deptId;
+        this.user = user;
+        this.permissions = permissions;
+        this.deptIds = deptIds;
     }
 
     public Long getUserId()
@@ -263,4 +273,12 @@
     {
         return null;
     }
+
+    public Long[] getDeptIds() {
+        return deptIds;
+    }
+
+    public void setDeptIds(Long[] deptIds) {
+        this.deptIds = deptIds;
+    }
 }

--
Gitblit v1.9.2