Search in sources :

Example 1 with ApplicationConfigDO

use of io.kenxue.cicd.infrastructure.repositoryimpl.application.database.dataobject.ApplicationConfigDO in project cicd-platform by ken-xue.

the class ApplicationConfigRepositoryImpl method page.

@Override
public Page<ApplicationConfig> page(ApplicationConfigPageQry qry) {
    QueryWrapper<ApplicationConfigDO> qw = new QueryWrapper<>();
    IPage doPage = applicationConfigMapper.selectPage(new PageDTO(qry.getPageIndex(), qry.getPageSize()), qw);
    return Page.of(doPage.getCurrent(), doPage.getSize(), doPage.getTotal(), applicationConfig2DOConvector.toDomainList(doPage.getRecords()));
}
Also used : IPage(com.baomidou.mybatisplus.core.metadata.IPage) PageDTO(com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO) QueryWrapper(com.baomidou.mybatisplus.core.conditions.query.QueryWrapper) ApplicationConfigDO(io.kenxue.cicd.infrastructure.repositoryimpl.application.database.dataobject.ApplicationConfigDO)

Aggregations

QueryWrapper (com.baomidou.mybatisplus.core.conditions.query.QueryWrapper)1 IPage (com.baomidou.mybatisplus.core.metadata.IPage)1 PageDTO (com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO)1 ApplicationConfigDO (io.kenxue.cicd.infrastructure.repositoryimpl.application.database.dataobject.ApplicationConfigDO)1