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()