chenhj
2026-04-24 ffe4413db421aabb7446007ff76d4e9943c6fc84
src/main/java/com/ruoyi/framework/security/LoginUser.java
@@ -74,12 +74,14 @@
    /**
     * 租户ID
     */
    private Integer tenantId;
    private Long tenantId;
    /**
     * 当前部门id
     */
    private Long currentDeptId;
    private Long currentDeptId;
    private String dataScope;
    public LoginUser()
    {
@@ -99,7 +101,7 @@
        this.permissions = permissions;
    }
    public LoginUser(Long userId, Long [] deptIds, SysUser user,Integer tenantId, Set<String> permissions)
    public LoginUser(Long userId, Long [] deptIds, SysUser user,Long tenantId, Set<String> permissions)
    {
        this.userId = userId;
        this.deptIds = deptIds;
@@ -108,7 +110,7 @@
        this.tenantId = tenantId;
    }
    public LoginUser(Long userId, Long [] deptIds, SysUser user,Integer tenantId,Long currentDeptId, Set<String> permissions)
    public LoginUser(Long userId, Long [] deptIds, SysUser user,Long tenantId,Long currentDeptId, Set<String> permissions)
    {
        this.userId = userId;
        this.deptIds = deptIds;
@@ -159,6 +161,11 @@
    public String getUsername()
    {
        return user.getUserName();
    }
    public String getNickName()
    {
        return user.getNickName();
    }
    /**
@@ -293,11 +300,11 @@
        return null;
    }
    public Integer getTenantId() {
    public Long getTenantId() {
        return tenantId;
    }
    public void setTenantId(Integer tenantId) {
    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }
@@ -309,7 +316,15 @@
        return currentDeptId;
    }
    public void setCurrentDeptId(Long currentDeptId) {
        this.currentDeptId = currentDeptId;
    }
}
    public void setCurrentDeptId(Long currentDeptId) {
        this.currentDeptId = currentDeptId;
    }
    public String getDataScope() {
        return dataScope;
    }
    public void setDataScope(String dataScope) {
        this.dataScope = dataScope;
    }
}