修改树形结构时列表分页问题
This commit is contained in:
parent
b042d2ae79
commit
6e090ae7fb
@ -286,7 +286,7 @@ public class DepartmentServiceImpl extends DefaultBaseService implements IDepart
|
||||
@Override
|
||||
public SuccessResultList<List<DepartmentDTO>> listPage(ListPage page) {
|
||||
PageHelper.startPage(page.getPage(), page.getRows());
|
||||
List<DepartmentDTO> departmentDTOs = list(page.getParams());
|
||||
List<DepartmentDTO> departmentDTOs = departmentDao.list(page.getParams());
|
||||
PageInfo<DepartmentDTO> pageInfo = new PageInfo<>(departmentDTOs);
|
||||
return new SuccessResultList<>(departmentDTOs, pageInfo.getPageNum(), pageInfo.getTotal());
|
||||
}
|
||||
|
@ -6,7 +6,6 @@ import ink.wgink.common.base.DefaultBaseService;
|
||||
import ink.wgink.interfaces.consts.ISystemConstant;
|
||||
import ink.wgink.pojo.ListPage;
|
||||
import ink.wgink.pojo.dtos.ZTreeDTO;
|
||||
import ink.wgink.pojo.dtos.department.DepartmentDTO;
|
||||
import ink.wgink.pojo.dtos.group.GroupDTO;
|
||||
import ink.wgink.pojo.pos.GroupPO;
|
||||
import ink.wgink.pojo.result.SuccessResultList;
|
||||
@ -104,7 +103,7 @@ public class GroupServiceImpl extends DefaultBaseService implements IGroupServic
|
||||
@Override
|
||||
public SuccessResultList<List<GroupDTO>> listPage(ListPage page) {
|
||||
PageHelper.startPage(page.getPage(), page.getRows());
|
||||
List<GroupDTO> groupDTOs = list(page.getParams());
|
||||
List<GroupDTO> groupDTOs = groupDao.list(page.getParams());
|
||||
PageInfo<GroupDTO> pageInfo = new PageInfo<>(groupDTOs);
|
||||
return new SuccessResultList<>(groupDTOs, pageInfo.getPageNum(), pageInfo.getTotal());
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ public class MenuServiceImpl extends DefaultBaseService implements IMenuService
|
||||
@Override
|
||||
public SuccessResultList<List<MenuDTO>> listPage(ListPage page) {
|
||||
PageHelper.startPage(page.getPage(), page.getRows());
|
||||
List<MenuDTO> menuDTOs = list(page.getParams());
|
||||
List<MenuDTO> menuDTOs = menuDao.list(page.getParams());
|
||||
PageInfo<MenuDTO> pageInfo = new PageInfo<>(menuDTOs);
|
||||
return new SuccessResultList<>(menuDTOs, pageInfo.getPageNum(), pageInfo.getTotal());
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ public class PositionServiceImpl extends DefaultBaseService implements IPosition
|
||||
@Override
|
||||
public SuccessResultList<List<PositionDTO>> listPage(ListPage page) {
|
||||
PageHelper.startPage(page.getPage(), page.getRows());
|
||||
List<PositionDTO> positionDTOs = list(page.getParams());
|
||||
List<PositionDTO> positionDTOs = positionDao.list(page.getParams());
|
||||
PageInfo<PositionDTO> pageInfo = new PageInfo<>(positionDTOs);
|
||||
return new SuccessResultList<>(positionDTOs, pageInfo.getPageNum(), pageInfo.getTotal());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user