class DepartmentManagementImpl implements DepartmentManagementService {

    @Override
    public CommonResult listPage(Integer pageNum, Integer pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        Page<Department> list = departmentMapper.listByPage();
        return CommonResult.success(list);
    }

}