Commit 85a84c47 authored by dahai's avatar dahai

push

parent aa3939bd
......@@ -170,14 +170,14 @@ public class ReadXmlApi {
Map<String,Object> resultMap = new HashMap<>();
if (mapList.size()>=Integer.parseInt(pageSize)){
int max=Integer.parseInt(currPage)*Integer.parseInt(pageSize);
int min = (Integer.parseInt(currPage)-1)*Integer.parseInt(pageSize);
int min = (Integer.parseInt(currPage)-1)*Integer.parseInt(pageSize)+1;
List list = new ArrayList();
if (mapList.size()<max){
for (int i=min-1;i<mapList.size();i++){
list.add(mapList.get(i));
}
}else {
for (int i=min;i<max-1;i++){
for (int i=min-1;i<max;i++){
list.add(mapList.get(i));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment