use of io.kenxue.cicd.infrastructure.repositoryimpl.sys.database.dataobject.UserOfRoleDO in project cicd-platform by ken-xue.
the class UserOfRoleRepositoryImpl method page.
@Override
public Page<UserOfRole> page(UserOfRolePageQry qry) {
QueryWrapper<UserOfRoleDO> wp = new QueryWrapper<>();
// 未删除
wp.eq("deleted", 0);
IPage doPage = new PageDTO(qry.getPageIndex(), qry.getPageSize());
IPage<UserOfRoleDO> page = userOfRoleMapper.selectPage(doPage, wp);
return Page.of(page.getCurrent(), page.getSize(), page.getTotal(), userOfRole2DOConvector.toDomainList(page.getRecords()));
}
Aggregations