liurunyu
2025-08-14 00cf6de9f5e3152b6afb73f276dd27dfaf3de439
pipIrr-platform/pipIrr-web/pipIrr-web-model/src/main/java/com/dy/pipIrrModel/param/ParamCtrl.java
@@ -58,23 +58,23 @@
        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(){
    public BaseResponse<List<VoParam>> all(Long cropsId){
        try {
            QueryResultVo<List<VoParam>> res = this.sv.selectAll() ;
            List<VoParam> res = this.sv.selectAll(cropsId) ;
            return BaseResponseUtils.buildSuccess(res);
        } catch (Exception e) {
            log.error("查询计算参数异常", e);