liurunyu
2025-08-21 38238bbebad273dfb7ea76024addaac8c8be7635
pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/largeScreen/Ls4StatisticsCtrl.java
@@ -5,9 +5,11 @@
import com.dy.common.webUtil.BaseResponse;
import com.dy.common.webUtil.BaseResponseUtils;
import com.dy.common.webUtil.ResultCodeMsg;
import com.dy.pipIrrGlobal.pojoMd.MdEt0;
import com.dy.pipIrrGlobal.voLargeScreen.VoBaseInfo;
import com.dy.pipIrrGlobal.voLargeScreen.VoCurrentInfo;
import com.dy.pipIrrGlobal.voLargeScreen.VoMonitorInfo;
import com.dy.pipIrrGlobal.voMd.VoCrops;
import com.dy.pipIrrGlobal.voSpecial.VoTopXClient;
import com.dy.pipIrrGlobal.voSpecial.VoTopXIntake;
import io.swagger.v3.oas.annotations.Operation;
@@ -175,4 +177,45 @@
    }
    /**
     * 得到所有作物
     * @return 数据集合
     */
    @Operation(summary = "得到所有作物", description = "得到所有作物")
    @ApiResponses(value = {
            @ApiResponse(
                    responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE,
                    description = "得到所有作物(BaseResponse.content:[VoTopXIntake{}])",
                    content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
                            schema = @Schema(implementation = VoCrops.class))}
            )
    })
    @GetMapping(path = "allCropts")
    @SsoAop()
    public BaseResponse<List<VoCrops>> allCropts(){
        List<VoCrops> res = this.sv.allCropts();
        return BaseResponseUtils.buildSuccess(res);
    }
    /**
     * 得到一个作物一周内的蒸腾量
     * @return 数据集合
     */
    @Operation(summary = "一个作物一周内的蒸腾量", description = "一个作物一周内的蒸腾量")
    @ApiResponses(value = {
            @ApiResponse(
                    responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE,
                    description = "一个作物一周内的蒸腾量(BaseResponse.content:[VoTopXIntake{}])",
                    content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
                            schema = @Schema(implementation = MdEt0.class))}
            )
    })
    @GetMapping(path = "et0InWeek")
    @SsoAop()
    public BaseResponse<List<MdEt0>> et0InWeek(Long cropId){
        List<MdEt0> res = this.sv.et0InWeek(cropId);
        return BaseResponseUtils.buildSuccess(res);
    }
}