mitao
2025-03-26 15b3e7a59fd14e802a5e48a8310e1cb8cb689bc7
ruoyi-common/src/main/java/com/ruoyi/common/utils/SecurityUtils.java
@@ -44,7 +44,20 @@
            throw new ServiceException("获取部门ID异常", HttpStatus.UNAUTHORIZED);
        }
    }
    /**
     * 获取营业部ID
     **/
    public static String getBusinessDeptId()
    {
        try
        {
            return getLoginUser().getUser().getBusinessDeptId();
        }
        catch (Exception e)
        {
            throw new ServiceException("获取营业部ID异常", HttpStatus.UNAUTHORIZED);
        }
    }
    /**
     * 获取用户账户
     **/