| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询基础地理类别") |
| | | @GetMapping(value = "/selectBaseType") |
| | | public ResponseMsg<Object> selectBaseType() { |
| | | @ApiOperation(value = "查询目录类别") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "D") |
| | | }) |
| | | @GetMapping(value = "/selectDirTypes") |
| | | public ResponseMsg<Object> selectDirTypes(String name) { |
| | | try { |
| | | List<KeyValueEntity> list = baseQueryService.selectBaseType(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询业务类别") |
| | | @GetMapping(value = "/selectBusinessType") |
| | | public ResponseMsg<Object> selectBusinessType() { |
| | | try { |
| | | List<KeyValueEntity> list = baseQueryService.selectBusinessType(); |
| | | List<KeyValueEntity> list = baseQueryService.selectDirTypes(name); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "根据源数据ID查询") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectMetaById") |
| | | public ResponseMsg<MetaEntity> selectMetaById(int id) { |
| | | try { |
| | | MetaEntity entity = metaService.selectById(id); |
| | | |
| | | return success(entity); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | } |