Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
cloud-phantom
/
common
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0f31ecb0
authored
Dec 19, 2017
by
fanlongfei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'test'
修改common分页 See merge request
!1
parents
40ab4847
984a20eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
src/main/java/com/kingboy/common/utils/page/PageParam.java
+2
-7
No files found.
src/main/java/com/kingboy/common/utils/page/PageParam.java
View file @
0f31ecb0
...
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment