@Override
    public PageResult<DataSourceAccess> pageQuery(DataSourceAccessPageQueryParam param, DataSourceAccessSelector selector) {
        LambdaQueryWrapper<DataSourceAccessDO> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(DataSourceAccessDO::getDataSourceId, param.getDataSourceId())
            .eq(DataSourceAccessDO::getAccessObjectType, param.getAccessObjectType())
            .eq(DataSourceAccessDO::getAccessObjectId, param.getAccessObjectId())
        ;

        Page<DataSourceAccessDO> page = new Page<>(param.getPageNo(), param.getPageSize());
        page.setSearchCount(param.getEnableReturnCount());
        IPage<DataSourceAccessDO> iPage = getAccessMapper().selectPage(page, queryWrapper);

        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