From dd23c6a885d67ead6b1aef9d6c18d8dc7cbd85cd Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期六, 25 四月 2026 13:56:43 +0800
Subject: [PATCH] feat(stock): 新增出库记录批次号字段设置

---
 src/main/java/com/ruoyi/framework/security/LoginUser.java |  128 ++++++++++++++++++++++++++++++++----------
 1 files changed, 96 insertions(+), 32 deletions(-)

diff --git a/src/main/java/com/ruoyi/framework/security/LoginUser.java b/src/main/java/com/ruoyi/framework/security/LoginUser.java
index fd42c5c..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;
 
     /**
      * 鐢ㄦ埛鍞竴鏍囪瘑
@@ -71,35 +71,17 @@
      */
     private SysUser user;
 
-    public Long getUserId()
-    {
-        return userId;
-    }
+    /**
+     * 绉熸埛ID
+     */
+    private Long tenantId;
 
-    public void setUserId(Long userId)
-    {
-        this.userId = userId;
-    }
-
-    public Long getDeptId()
-    {
-        return deptId;
-    }
-
-    public void setDeptId(Long deptId)
-    {
-        this.deptId = deptId;
-    }
-
-    public String getToken()
-    {
-        return token;
-    }
-
-    public void setToken(String token)
-    {
-        this.token = token;
-    }
+    /**
+     * 褰撳墠閮ㄩ棬id
+     */
+    private Long currentDeptId;
+
+    private String dataScope;
 
     public LoginUser()
     {
@@ -111,12 +93,61 @@
         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 [] deptIds, SysUser user,Long tenantId, Set<String> permissions)
+    {
+        this.userId = userId;
+        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()
+    {
+        return userId;
+    }
+
+    public void setUserId(Long userId)
+    {
+        this.userId = userId;
+    }
+
+    public Long [] getDeptIds()
+    {
+        return deptIds;
+    }
+
+    public void setDeptId(Long [] deptIds)
+    {
+        this.deptIds = deptIds;
+    }
+
+    public String getToken()
+    {
+        return token;
+    }
+
+    public void setToken(String token)
+    {
+        this.token = token;
     }
 
     @JSONField(serialize = false)
@@ -130,6 +161,11 @@
     public String getUsername()
     {
         return user.getUserName();
+    }
+
+    public String getNickName()
+    {
+        return user.getNickName();
     }
 
     /**
@@ -263,4 +299,32 @@
     {
         return null;
     }
-}
+
+    public Long getTenantId() {
+        return 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