From d55278560d29562b341aafa1652209a8aae0af33 Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期四, 30 四月 2026 17:08:16 +0800
Subject: [PATCH] 计量器具台账附件修改

---
 src/main/java/com/ruoyi/framework/security/LoginUser.java |   68 +++++++++++++++++++++++++++------
 1 files changed, 55 insertions(+), 13 deletions(-)

diff --git a/src/main/java/com/ruoyi/framework/security/LoginUser.java b/src/main/java/com/ruoyi/framework/security/LoginUser.java
index 53459bc..168202f 100644
--- a/src/main/java/com/ruoyi/framework/security/LoginUser.java
+++ b/src/main/java/com/ruoyi/framework/security/LoginUser.java
@@ -24,7 +24,7 @@
     /**
      * 閮ㄩ棬ID
      */
-    private Long deptId;
+    private Long [] deptIds;
 
     /**
      * 鐢ㄦ埛鍞竴鏍囪瘑
@@ -74,7 +74,14 @@
     /**
      * 绉熸埛ID
      */
-    private Integer tenantId;
+    private Long tenantId;
+
+    /**
+     * 褰撳墠閮ㄩ棬id
+     */
+    private Long currentDeptId;
+
+    private String dataScope;
 
     public LoginUser()
     {
@@ -86,21 +93,31 @@
         this.permissions = permissions;
     }
 
-    public LoginUser(Long userId, Long deptId, SysUser user, Set<String> permissions)
+    public LoginUser(Long userId, Long [] deptId, SysUser user, Set<String> permissions)
     {
         this.userId = userId;
-        this.deptId = deptId;
+        this.deptIds = deptId;
         this.user = user;
         this.permissions = permissions;
     }
 
-    public LoginUser(Long userId, Long deptId, SysUser user,Integer tenantId, Set<String> permissions)
+    public LoginUser(Long userId, Long [] deptIds, SysUser user,Long tenantId, Set<String> permissions)
     {
         this.userId = userId;
-        this.deptId = deptId;
+        this.deptIds = deptIds;
         this.user = user;
         this.permissions = permissions;
         this.tenantId = tenantId;
+    }
+
+    public LoginUser(Long userId, Long [] deptIds, SysUser user,Long tenantId,Long currentDeptId, Set<String> permissions)
+    {
+        this.userId = userId;
+        this.deptIds = deptIds;
+        this.user = user;
+        this.permissions = permissions;
+        this.tenantId = tenantId;
+        this.currentDeptId = currentDeptId;
     }
 
     public Long getUserId()
@@ -113,14 +130,14 @@
         this.userId = userId;
     }
 
-    public Long getDeptId()
+    public Long [] getDeptIds()
     {
-        return deptId;
+        return deptIds;
     }
 
-    public void setDeptId(Long deptId)
+    public void setDeptId(Long [] deptIds)
     {
-        this.deptId = deptId;
+        this.deptIds = deptIds;
     }
 
     public String getToken()
@@ -144,6 +161,11 @@
     public String getUsername()
     {
         return user.getUserName();
+    }
+
+    public String getNickName()
+    {
+        return user.getNickName();
     }
 
     /**
@@ -278,11 +300,31 @@
         return null;
     }
 
-    public Integer getTenantId() {
+    public Long getTenantId() {
         return tenantId;
     }
 
-    public void setTenantId(Integer tenantId) {
+    public void setTenantId(Long tenantId) {
         this.tenantId = tenantId;
     }
-}
+
+    public void setDeptIds(Long[] deptIds) {
+        this.deptIds = deptIds;
+    }
+
+    public Long getCurrentDeptId() {
+        return currentDeptId;
+    }
+
+    public void setCurrentDeptId(Long currentDeptId) {
+        this.currentDeptId = currentDeptId;
+    }
+
+    public String getDataScope() {
+        return dataScope;
+    }
+
+    public void setDataScope(String dataScope) {
+        this.dataScope = dataScope;
+    }
+}

--
Gitblit v1.9.3