修改分页总数
This commit is contained in:
parent
39eebf62fc
commit
f5561b8e7d
|
|
@ -88,6 +88,7 @@ public class CompServiceImpl extends Service implements CompService {
|
|||
Map<String, Object> datas = new HashMap<>();
|
||||
PageUtil.start(params.getCurrent(), params.getPageSize());
|
||||
List<CompPO> parentList = getCompMapper().listParent();
|
||||
PageInfo<CompPO> pageInfo = new PageInfo<>(parentList);
|
||||
List<CompPO> list = new ArrayList<>();
|
||||
list.addAll(parentList);
|
||||
|
||||
|
|
@ -100,7 +101,7 @@ public class CompServiceImpl extends Service implements CompService {
|
|||
|
||||
List<CompListDTO> compListDTOS = CompBO.buildCompDTOList(list, filterList);
|
||||
PageInfo<CompListDTO> pageInfos = new PageInfo<>(compListDTOS, CompListDTO.class);
|
||||
pageInfos.setTotal(pageInfos.getTotal());
|
||||
pageInfos.setTotal(pageInfo.getTotal());
|
||||
pageInfos.setPageNum(params.getCurrent());
|
||||
pageInfos.setPageSize(params.getPageSize());
|
||||
|
||||
|
|
|
|||
|
|
@ -28,9 +28,10 @@ public class DepartmentServiceImpl extends Service implements DepartmentService
|
|||
//1.查询分部下所有部门
|
||||
PageUtil.start(param.getCurrent(),param.getPageSize());
|
||||
List<DepartmentPO> departmentPOS = MapperProxyFactory.getProxy(DepartmentMapper.class).getDeptListByCompId(param.getParentComp());
|
||||
PageInfo<DepartmentPO> pageInfo = new PageInfo<>(departmentPOS);
|
||||
List<SingleDeptTreeVO> singleDeptTreeVOS = DepartmentBO.buildSingleDeptTreeVOS(departmentPOS);
|
||||
PageInfo<SingleDeptTreeVO> pageInfos = new PageInfo<>(singleDeptTreeVOS,SingleDeptTreeVO.class);
|
||||
pageInfos.setTotal(departmentPOS.size());
|
||||
pageInfos.setTotal(pageInfo.getTotal());
|
||||
pageInfos.setPageNum(param.getCurrent());
|
||||
pageInfos.setPageSize(param.getPageSize());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue