public class ListRange {
public ListRange(Object[] data, int totalSize) {
this.data = data;
this.totalSize = totalSize;
}
private Object[] data;
private int totalSize;
public Object[] getData() {
return data;
}
public void setData(Object[] data) {
this.data = data;
}
public int getTotalSize() {
return totalSize;
}
public void setTotalSize(int totalSize) {
this.totalSize = totalSize;
}
}
return new ListRange(page.getResult().toArray(), page.getRecordCount());
Object[] --->改成 List
public ListRange(List listData, int totalSize) {
this.listData= listData;
this.totalSize = totalSize;
}