Search in sources :

Example 1 with PipelineNodeDO

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

the class PipelineNodeRepositoryImpl method page.

@Override
public Page<PipelineNode> page(PipelineNodePageQry qry) {
    QueryWrapper<PipelineNodeDO> qw = new QueryWrapper<>();
    IPage doPage = pipelineNodeMapper.selectPage(new PageDTO(qry.getPageIndex(), qry.getPageSize()), qw);
    return Page.of(doPage.getCurrent(), doPage.getSize(), doPage.getTotal(), pipelineNode2DOConvector.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) PipelineNodeDO(io.kenxue.cicd.infrastructure.repositoryimpl.application.database.dataobject.PipelineNodeDO)

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 PipelineNodeDO (io.kenxue.cicd.infrastructure.repositoryimpl.application.database.dataobject.PipelineNodeDO)1