| | |
| | | |
| | | /** |
| | | * 参数设置 |
| | | * @author sws |
| | | * @date 2022-09-27 |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "运维管理\\系统配置") |
| | | @RestController |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询单条") |
| | | @ApiOperation(value = "根据ID查询") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectOne") |
| | | public ResponseMsg<ArgsEntity> selectOne(int id) { |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<ArgsEntity> selectById(int id) { |
| | | try { |
| | | ArgsEntity argsEntity = argsService.selectOne(id); |
| | | ArgsEntity entity = argsService.selectById(id); |
| | | |
| | | return success(argsEntity); |
| | | return success(entity); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |