| | |
| | | }) |
| | | .collect(Collectors.toList()); |
| | | // 分页 |
| | | List<DoQuestionVO> list = doQuestionVOS.stream().skip((wrongRequestVo.getPageIndex() - 1) * wrongRequestVo.getPageSize()).collect(Collectors.toList()); |
| | | List<DoQuestionVO> list = doQuestionVOS.stream().skip((wrongRequestVo.getPageIndex() - 1) * wrongRequestVo.getPageSize()).collect(Collectors.toList()).stream().limit(wrongRequestVo.getPageSize()).collect(Collectors.toList()); |
| | | wrongResponseVO.setList(list); |
| | | wrongResponseVO.setTotal(doQuestionVOS.size()); |
| | | wrongResponseVO.setPageSize(wrongRequestVo.getPageSize()); |