@Override public Pagination<UserNewsTaskArticle> paginationEntity( UserNewsTaskArticle searchEntity, Pagination<UserNewsTaskArticle> pagination) { List<UserNewsTaskArticle> items = baseDao.paginationEntity(searchEntity, pagination); Integer totalItemsCount = baseDao.getTotalItemsCount(searchEntity); pagination.setTotalItemsCount(totalItemsCount); pagination.setItems(items); return pagination; }
@Override public Pagination<MediaWx> paginationEntity( MediaWx searchEntity, Pagination<MediaWx> pagination) { Integer totalItemsCount = baseDao.getTotalItemsCount(searchEntity); List<MediaWx> items = baseDao.paginationEntity(searchEntity, pagination); pagination.setTotalItemsCount(totalItemsCount); pagination.setItems(items); return pagination; }
@Override public Pagination<CustomTextMessage> paginationEntity( CustomTextMessage searchEntity, Pagination<CustomTextMessage> pagination) { Integer totalItemsCount = entityDao.getTotalItemsCount(searchEntity); List<CustomTextMessage> items = entityDao.paginationEntity(searchEntity, pagination); pagination.setTotalItemsCount(totalItemsCount); pagination.setItems(items); return pagination; }