houzhongjian
2024-12-26 5b9f87937feb53890138dbcd3a94cd883997e950
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;
    }
}