Commit 984a20eb by fanlongfei

修改common分页

parent 40ab4847
......@@ -19,23 +19,18 @@ public class PageParam {
}
//当前页
private Integer p = 0;
private Integer p = 1;
//每页容量
private Integer c;
public int firstResult() {
return (p - 1) * c;
}
public Integer getP() {
return p;
}
public void setP(Integer p) {
if (p != null && p > 0) {
//hibernate分页从第0页开始
this.p = p - 1;
this.p = p;
}
}
......
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 sign in to comment