|
|
@ -47,10 +47,10 @@ public class UserCollectService {
|
|
|
|
return Collections.emptyList();
|
|
|
|
return Collections.emptyList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private List<String> getPageResult(Integer pageNum, Integer pageSize, LinkedList<String> objectIds) {
|
|
|
|
private List<String> getPageResult(Integer pageNum, Integer pageSize, LinkedList<String> objectIds) {
|
|
|
|
if (null != pageNum && null != pageSize && pageNum > 0 && pageSize > 0) {
|
|
|
|
int end = pageNum * pageSize;
|
|
|
|
return objectIds.subList((pageNum - 1) * pageSize, pageNum * pageSize);
|
|
|
|
if (null != pageNum && null != pageSize && pageNum > 0 && pageSize > 0 && end <= objectIds.size()) {
|
|
|
|
|
|
|
|
return objectIds.subList((pageNum - 1) * pageSize, end);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return objectIds;
|
|
|
|
return objectIds;
|
|
|
|
}
|
|
|
|
}
|
|
|
|