Commit 0f31ecb0 by fanlongfei

Merge branch 'develop' into 'test'

修改common分页



See merge request !1
parents 40ab4847 984a20eb
......@@ -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