Search in sources :

Example 1 with DictionaryDO

use of io.ddd.framework.infrastructure.repositoryimpl.sys.database.dataobject.DictionaryDO in project ddd-framework by ken-xue.

the class DictionaryRepositoryImpl method page.

@Override
public Page<Dictionary> page(DictionaryPageQry qry) {
    QueryWrapper<DictionaryDO> qw = new QueryWrapper<>();
    IPage doPage = dictionaryMapper.selectPage(new PageDTO(qry.getPageIndex(), qry.getPageSize()), qw);
    return Page.of(doPage.getCurrent(), doPage.getSize(), doPage.getTotal(), dictionary2DOConvector.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) DictionaryDO(io.ddd.framework.infrastructure.repositoryimpl.sys.database.dataobject.DictionaryDO)

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 DictionaryDO (io.ddd.framework.infrastructure.repositoryimpl.sys.database.dataobject.DictionaryDO)1