| | |
| | | import com.gkhy.exam.system.domain.SysDeptManage; |
| | | import com.gkhy.exam.system.domain.SysDeptResponsibility; |
| | | import com.gkhy.exam.system.domain.SysFunctionalDistribution; |
| | | import com.gkhy.exam.system.domain.req.SysDeptPageReq; |
| | | import com.gkhy.exam.system.domain.vo.*; |
| | | import com.gkhy.exam.system.mapper.SysDeptMapper; |
| | | import com.gkhy.exam.system.mapper.SysDeptResponsibilityMapper; |
| | |
| | | ,"10.2", "10.3"}; |
| | | |
| | | @Override |
| | | public CommonPage selectDeptPageList(SysDept req) { |
| | | public CommonPage selectDeptPageList(SysDeptPageReq req) { |
| | | |
| | | PageUtils.startPage(); |
| | | List<DeptVo> deptVos = deptMapper.selectDeptList(req); |
| | | |
| | | List<DeptVo> deptVos = deptMapper.selectDeptPageList(req); |
| | | if (ObjectUtil.isNotEmpty(deptVos)){ |
| | | for (DeptVo deptVo : deptVos) { |
| | | List<CaluseVO1> caluseVO1List = deptVo.getCaluseVO1List(); |
| | |
| | | |
| | | } |
| | | } |
| | | int i = deptMapper.selectDeptListCount(req); |
| | | |
| | | CommonPage<DeptVo> deptVoCommonPage = CommonPage.restPage(deptVos); |
| | | int totalPage = (int) Math.ceil((double) i / deptVoCommonPage.getPageSize()); |
| | | deptVoCommonPage.setTotalPage(totalPage); |
| | | deptVoCommonPage.setTotal(Long.valueOf( i)); |
| | | return deptVoCommonPage; |
| | | |
| | | } |