|
|
@@ -94,7 +94,8 @@ public class UserController {
|
|
|
//判断最后一页时返回剩余数据
|
|
|
List<YtAppUserListView> result;
|
|
|
if(param.getPage().compareTo(total)>=0){
|
|
|
- result = resultList.stream().limit(a).collect(Collectors.toList());
|
|
|
+ int skip = (param.getPage() - 1) *param.getLimit();
|
|
|
+ result = resultList.stream().skip(skip).limit(a).collect(Collectors.toList());
|
|
|
}else {
|
|
|
if(param.getPage()>1){
|
|
|
int skip = (param.getPage() - 1) *param.getLimit();
|