@Override
    public PageResult<DataSourceAccess> comprehensivePageQuery(DataSourceAccessComprehensivePageQueryParam param,
        DataSourceAccessSelector selector) {
        Page<DataSourceAccessDO> page = new Page<>(param.getPageNo(), param.getPageSize());
        page.setSearchCount(param.getEnableReturnCount());
        IPage<DataSourceAccessDO> iPage = getMapper().comprehensivePageQuery(page,
            param.getDataSourceId(), param.getAccessObjectType(), param.getAccessObjectId(),
            param.getUserOrTeamSearchKey(),
            param.getDataSourceSearchKey());

        List<DataSourceAccess> list = dataSourceAccessConverter.do2dto(iPage.getRecords());

        fillData(list, selector);

        return PageResult.of(list, iPage.getTotal(), param);
    }
Data Source Access

@author Jiaju Zhuang
chat2db-server/chat2db-server-domain/chat2db-server-domain-core/src/main/java/ai/chat2db/server/domain/core/impl/DataSourceAccessServiceImpl.java