From 38238bbebad273dfb7ea76024addaac8c8be7635 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 21 八月 2025 10:14:40 +0800 Subject: [PATCH] 大屏展示模块,增加查询并显示作物蒸腾量的内容 --- pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/largeScreen/Ls4StatisticsCtrl.java | 63 +++++++++++++++++++++++++++++++ 1 files changed, 63 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/largeScreen/Ls4StatisticsCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/largeScreen/Ls4StatisticsCtrl.java index 5c35c16..03dd99c 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/largeScreen/Ls4StatisticsCtrl.java +++ b/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; @@ -62,6 +64,26 @@ @GetMapping(path = "baseInfo") @SsoAop() public BaseResponse<VoBaseInfo> baseInfo() { + VoBaseInfo res = this.sv.baseInfo(); + return BaseResponseUtils.buildSuccess(res); + } + + /** + * 澶у睆灞曠ず---鍩烘湰淇℃伅 + * @return 鍩烘湰淇℃伅 + */ + @Operation(summary = "澶у睆灞曠ず", description = "鍩烘湰淇℃伅") + @ApiResponses(value = { + @ApiResponse( + responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, + description = "鍩烘湰淇℃伅锛圔aseResponse.content:VoBaseInfo{}锛�", + content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, + schema = @Schema(implementation = VoBaseInfo.class))} + ) + }) + @GetMapping(path = "basicInfo") + @SsoAop() + public BaseResponse<VoBaseInfo> basicInfo() { VoBaseInfo res = this.sv.baseInfo(); return BaseResponseUtils.buildSuccess(res); } @@ -155,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 = "涓�涓綔鐗╀竴鍛ㄥ唴鐨勮捀鑵鹃噺锛圔aseResponse.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); + } + } -- Gitblit v1.8.0