| | |
| | | return BaseResponseUtils.buildSuccess(this.sv.selectById(id)); |
| | | } |
| | | /** |
| | | * 客户端请求得到一些计算参数数据 |
| | | * @return 一些计算参数数据 |
| | | * 客户端请求得到一个作物的所有计算参数数据 |
| | | * @return 一个作物的所有计算参数数据 |
| | | */ |
| | | @Operation(summary = "获得一些计算参数", description = "返回一些分页计算参数数据") |
| | | @Operation(summary = "获得一个作物的所有计算参数", description = "返回一个作物的所有计算参数数据") |
| | | @ApiResponses(value = { |
| | | @ApiResponse( |
| | | responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, |
| | | description = "返回一些计算参数数据(BaseResponse.content:QueryResultVo[{}])", |
| | | description = "返回一个作物的所有计算参数数据(BaseResponse.content:QueryResultVo[{}])", |
| | | content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, |
| | | schema = @Schema(implementation = VoParam.class))} |
| | | ) |
| | | }) |
| | | @GetMapping(path = "some") |
| | | @GetMapping(path = "all") |
| | | @SsoAop() |
| | | public BaseResponse<QueryResultVo<List<VoParam>>> all(Long cropsId){ |
| | | public BaseResponse<List<VoParam>> all(Long cropsId){ |
| | | try { |
| | | QueryResultVo<List<VoParam>> res = this.sv.selectAll(cropsId) ; |
| | | List<VoParam> res = this.sv.selectAll(cropsId) ; |
| | | return BaseResponseUtils.buildSuccess(res); |
| | | } catch (Exception e) { |
| | | log.error("查询计算参数异常", e); |