|
@@ -132,10 +132,6 @@ public class PageInfo<T> implements Serializable {
|
|
|
public void setTotal(int total) {
|
|
|
this.total = total;
|
|
|
this.totalPage=new BigDecimal(total).divide(new BigDecimal(limit),0,BigDecimal.ROUND_CEILING).intValue();
|
|
|
- if(this.pageNo>total){
|
|
|
- this.pageNo = total;
|
|
|
- this.offset = (this.pageNo - 1) * this.limit;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
public List<T> getRows() {
|