buhuazhen
2026-05-20 5862905480f0887b84194722b2b2b6a7f979df43
src/main/java/com/ruoyi/common/utils/SecurityUtils.java
@@ -38,11 +38,11 @@
    /**
     * 获取部门ID
     **/
    public static Long getDeptId()
    public static Long [] getDeptId()
    {
        try
        {
            return getLoginUser().getDeptId();
            return getLoginUser().getDeptIds();
        }
        catch (Exception e)
        {
@@ -121,7 +121,7 @@
     */
    public static boolean isAdmin(Long userId)
    {
        return userId != null && 1L == userId;
        return hasRole("普通2") ||hasRole("admin") || hasRole("最高1");
    }
    /**