修改分页总条数显示有误的问题
This commit is contained in:
@@ -159,7 +159,7 @@ public class DepotController {
|
|||||||
if (currentPage == null || currentPage <= 0) {
|
if (currentPage == null || currentPage <= 0) {
|
||||||
currentPage = BusinessConstants.DEFAULT_PAGINATION_PAGE_NUMBER;
|
currentPage = BusinessConstants.DEFAULT_PAGINATION_PAGE_NUMBER;
|
||||||
}
|
}
|
||||||
PageHelper.startPage(currentPage,pageSize,false);
|
PageHelper.startPage(currentPage,pageSize,true);
|
||||||
List<DepotEx> list = depotService.getDepotList(parameterMap);
|
List<DepotEx> list = depotService.getDepotList(parameterMap);
|
||||||
//获取分页查询后的数据
|
//获取分页查询后的数据
|
||||||
PageInfo<DepotEx> pageInfo = new PageInfo<>(list);
|
PageInfo<DepotEx> pageInfo = new PageInfo<>(list);
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ public class UserController {
|
|||||||
if (currentPage == null || currentPage <= 0) {
|
if (currentPage == null || currentPage <= 0) {
|
||||||
currentPage = BusinessConstants.DEFAULT_PAGINATION_PAGE_NUMBER;
|
currentPage = BusinessConstants.DEFAULT_PAGINATION_PAGE_NUMBER;
|
||||||
}
|
}
|
||||||
PageHelper.startPage(currentPage,pageSize,false);
|
PageHelper.startPage(currentPage,pageSize,true);
|
||||||
List<UserEx> list = userService.getUserList(parameterMap);
|
List<UserEx> list = userService.getUserList(parameterMap);
|
||||||
//获取分页查询后的数据
|
//获取分页查询后的数据
|
||||||
PageInfo<UserEx> pageInfo = new PageInfo<>(list);
|
PageInfo<UserEx> pageInfo = new PageInfo<>(list);
|
||||||
|
|||||||
Reference in New Issue
Block a user