Commit 217e679dc3e0e6ef3832c9b98a5cf13f174a4fcc
1 parent
e98e59aa29
Exists in
master
and in
6 other branches
bug修复
Showing 1 changed file with 2 additions and 1 deletions
platform-common/src/main/java/com/lyms/platform/common/result/PageResult.java
View file @
217e679
... | ... | @@ -18,9 +18,10 @@ |
18 | 18 | public PageResult(Integer count, Integer page, Integer limit, |
19 | 19 | Object rows) { |
20 | 20 | this.count = count; |
21 | - this.page = page; | |
21 | +// this.page = page; | |
22 | 22 | this.limit = limit; |
23 | 23 | this.grid = rows; |
24 | + this.page = ((count - 1)/this.limit) + 1; | |
24 | 25 | this.lastPage = ((count - 1)/this.limit) + 1; |
25 | 26 | } |
26 | 27 |