xiangpei
2024-09-02 f62731e71cb53961be69ab60f8f56cc629c90fbc
ycl-server/src/main/java/com/ycl/utils/SecurityUtils.java
@@ -39,6 +39,20 @@
    }
    /**
     * 获取运维单位ID
     *
     * */
    public static Integer getUnitId() {
        try {
            return getLoginUser().getUser().getUnitId();
        }
        catch (Exception e)
        {
            throw new ServiceException("获取用户单位异常", HttpStatus.UNAUTHORIZED);
        }
    }
    /**
     * 获取部门ID
     **/
    public static Long getDeptId()