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()));
}
Aggregations