| | |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "递归查询") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "目录名称", dataType = "String", paramType = "query", required = false, example = "中俄东线管道工程南段") |
| | | }) |
| | | @GetMapping(value = "/selectDirRecursive") |
| | | public ResponseMsg<List<DirEntity>> selectDirRecursive(String name) { |
| | | try { |
| | | if (StringHelper.isEmpty(name)) { |
| | | name = "中俄东线管道工程南段"; |
| | | } |
| | | List<DirEntity> list = dirService.selectDirRecursive(name); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | } |
| | |
| | | /** |
| | | * 递归查询 |
| | | * |
| | | * @param name |
| | | * @return |
| | | */ |
| | | public List<DirEntity> selectDirRecursive(String name); |
| | | |
| | | /** |
| | | * 递归查询 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<DirEntity> selectDirRecursive(String name) { |
| | | return dirMapper.selectDirRecursive(name); |
| | | } |
| | | |
| | | @Override |
| | | public List<DirEntity> selectRecursiveById(Integer id) { |
| | | return dirMapper.selectRecursiveById(id); |
| | | } |