| | |
| | | return getDataTable(iClassifyAdministrationService.selectRootList(pageParam,pageSize,parentId,departmentId),num); |
| | | } |
| | | |
| | | /** |
| | | * 获取管理菜单列表(无分页已分级) |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = " 获取管理菜单列表(无分页已分级))",response = ClassifyAdministration.class) |
| | | @GetMapping("/selectListByParentId") |
| | | public TableDataInfo selectListByParentId(@RequestParam(value = "parentId",required = false) String parentId, |
| | | @RequestParam(value = "departmentId",required = false) Integer departmentId){ |
| | | int num=iClassifyAdministrationService.countNum("",null); |
| | | if (parentId==null) |
| | | parentId="0"; |
| | | return getDataTable(iClassifyAdministrationService.selectConfigListByParentId(parentId, departmentId),num); |
| | | } |
| | | |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiOperation("获取分类根据id 如果是二级id则获取的是办事指南,不传参默认是0") |
| | | @GetMapping("/queryListById") |
| | | @Authorization |
| | | ResultData queryListById(@RequestParam(value = "id",required = false) Integer id){ |
| | | if(id==null) |
| | | id=0; |
| | | return iClassifyAdministrationService.queryListById(id); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |