ItemReadService implements ItemReadFacade { @Override public ICResponse<Paging<ItemInfoDTO>> paging(ItemPagingRequest request) { request.checkParam(); ICResponse<Paging<ItemInfo>> paging = itemReadFacade.paging(request); if (paging.isSuccess() && CollectionUtils.isNotEmpty(paging.getResult().getData())) { List<ItemInfo> data = paging.getResult().getData(); List<ItemInfoDTO> itemInfoDTOList = data.stream().map(t -> { ItemInfoDTO itemInfoDTO = new ItemInfoDTO(); BeanUtils.copyProperties(t, itemInfoDTO); return itemInfoDTO; }).collect(Collectors.toList()); itemManager.filledRelationCity(itemInfoDTOList); itemManager.filCategoryInfo(itemInfoDTOList); Paging<ItemInfoDTO> pageResult = new Paging<>(); pageResult.setTotal(paging.getResult().getTotal()); pageResult.setData(itemInfoDTOList); return ICResponse.ok(pageResult); } return ICResponse.ok(Paging.empty()); }  @Override ICResponse<Paging<ItemInfoDTO>> paging(ItemPagingRequest request); @Override ICResponse<FullItemInfo> queryFullItem(FullItemQueryRequest request); @Override ICResponse<FullItemWithDetailInfo> queryItemForEdit(FullItemQueryRequest request); @Override ICResponse<FullItemWithDetailInfo> queryFullItemWithDetail(FullItemWithDetailQueryRequest request);  }
@Test public void paging() { ItemPagingRequest request = new ItemPagingRequest(); request.setOffset(0); request.setLimit(10); request.setItemName("name"); ICResponse<Paging<ItemInfoDTO>> paging = itemReadService.paging(request); Assert.assertTrue(paging.isSuccess()); System.out.println(JSON.toJSONString(paging)); }