lambda分页

List checkLaborCostResPageList = checkLaborCostResList.stream()
                .sorted(Comparator.comparing(CheckLaborCostRes::getUpdateTime).reversed())
                .skip((long) (req.getPage() - 1) * req.getPageSize())
                .limit(req.getPageSize())
                .collect(Collectors.toList());

你可能感兴趣的:(工作记录,大数据)