List feverClinicsDtoList2 = feverClinicsDtoList.stream().sorted((Sub1, Sub2) -> Sub1.getDistance().compareTo(Sub2.getDistance())).skip(pageIndex*pageSize).limit(pageSize).collect(Collectors.toList());
List feverClinicsDtoList2 = feverClinicsDtoList.stream().sorted((Sub1, Sub2) -> Sub1.getDistance().compareTo(Sub2.getDistance())).skip(pageIndex*pageSize).limit(pageSize).collect(Collectors.toList());
本文标题:分页一行代码
本文链接:https://www.haomeiwen.com/subject/gsgnxhtx.html
网友评论