use of io.ddd.framework.infrastructure.repositoryimpl.sys.database.dataobject.RoleOfMenuDO in project ddd-framework by ken-xue.
the class RoleOfMenuRepositoryImpl method getById.
public RoleOfMenu getById(long id) {
RoleOfMenuDO roleOfMenuDO = roleOfMenuMapper.selectById(id);
RoleOfMenu roleOfMenu = new RoleOfMenu();
BeanUtils.copyProperties(roleOfMenuDO, roleOfMenu);
return roleOfMenu;
}
use of io.ddd.framework.infrastructure.repositoryimpl.sys.database.dataobject.RoleOfMenuDO in project ddd-framework by ken-xue.
the class RoleOfMenuRepositoryImpl method page.
@Override
public Page<RoleOfMenu> page(RoleOfMenuPageQry qry) {
QueryWrapper<RoleOfMenuDO> wp = new QueryWrapper<>();
// 未删除
wp.eq("deleted", 0);
IPage doPage = new PageDTO(qry.getPageIndex(), qry.getPageSize());
IPage<RoleOfMenuDO> page = roleOfMenuMapper.selectPage(doPage, wp);
return Page.of(page.getCurrent(), page.getSize(), page.getTotal(), roleOfMenu2DOConvector.toDomainList(page.getRecords()));
}
Aggregations