Search in sources :

Example 1 with MachineGroupDO

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

the class MachineGroupRepositoryImpl method page.

@Override
public Page<MachineGroup> page(MachineGroupPageQry qry) {
    QueryWrapper<MachineGroupDO> qw = new QueryWrapper<>();
    qw.eq("deleted", false);
    IPage doPage = machineGroupMapper.selectPage(new PageDTO(qry.getPageIndex(), qry.getPageSize()), qw);
    return Page.of(doPage.getCurrent(), doPage.getSize(), doPage.getTotal(), machineGroup2DOConvector.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) MachineGroupDO(io.kenxue.cicd.infrastructure.repositoryimpl.machine.database.dataobject.MachineGroupDO)

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