Search in sources :

Example 1 with PipelineExecuteLoggerDO

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

the class PipelineExecuteLoggerRepositoryImpl method page.

@Override
public Page<PipelineExecuteLogger> page(PipelineExecuteLoggerPageQry qry) {
    QueryWrapper<PipelineExecuteLoggerDO> qw = new QueryWrapper<>();
    qw.eq("deleted", false);
    if (Objects.nonNull(qry.getPipelineUuid()))
        qw.eq("pipeline_uuid", qry.getPipelineUuid());
    qw.orderByDesc("gmt_create");
    IPage doPage = pipelineExecuteLoggerMapper.selectPage(new PageDTO(qry.getPageIndex(), qry.getPageSize()), qw);
    return Page.of(doPage.getCurrent(), doPage.getSize(), doPage.getTotal(), pipelineExecuteLogger2DOConvector.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) PipelineExecuteLoggerDO(io.kenxue.cicd.infrastructure.repositoryimpl.pipeline.database.dataobject.PipelineExecuteLoggerDO)

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