dengzedong
2024-11-06 db184afd0c5bf3359b44eb0251fa5b07386eb3ff
iailab-module-system/iailab-module-system-biz/src/main/java/com/iailab/module/system/service/permission/RoleServiceImpl.java
@@ -269,4 +269,12 @@
        return SpringUtil.getBean(getClass());
    }
    /**
     * 查询租户管理员
     */
    public RoleDO getTenantAdminRole(Long tenantId) {
        RoleDO roleDO = roleMapper.selectOne(new LambdaQueryWrapperX<RoleDO>().eq(RoleDO::getType, 1L).eq(RoleDO::getTenantId, tenantId));
        return roleDO;
    }
}