From ab01a0f611c0adb97662bc8f548ca4a911ec8045 Mon Sep 17 00:00:00 2001 From: chenrui <1187576398@qq.com> Date: 星期五, 06 六月 2025 17:37:39 +0800 Subject: [PATCH] 分页修改 --- src/main/java/com/ruoyi/framework/security/LoginUser.java | 45 ++++++++++++++++++++++++++++++++++++--------- 1 files changed, 36 insertions(+), 9 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..33f27a2 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; /** * 鐢ㄦ埛鍞竴鏍囪瘑 @@ -76,6 +76,11 @@ */ private Integer tenantId; + /** + * 褰撳墠閮ㄩ棬id + */ + private Long currentDeptId; + public LoginUser() { } @@ -86,21 +91,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,Integer 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,Integer 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 +128,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() @@ -285,4 +300,16 @@ public void setTenantId(Integer 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; + } } -- Gitblit v1.9.3