From 203223860baa19deb6860eb2ba3181910d662980 Mon Sep 17 00:00:00 2001
From: zhubaomin <zhubaomin>
Date: 星期四, 17 四月 2025 14:22:59 +0800
Subject: [PATCH] 1. 轮灌组被终止时灌溉时长为实际数值。2. 计划历史表按照创建时间倒排序。3. 发布计划时判断是否同项目下未完成计划,是否其他项目下使用了本计划的轮灌组且计划未完成。4. 根据计划ID获取计划最新状态。

---
 pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/largeScreen/Ls4StatisticsCtrl.java |   66 +++++++++++++++++++++++++++++++++
 1 files changed, 66 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 fdd99cf..7d6c964 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
@@ -8,6 +8,8 @@
 import com.dy.pipIrrGlobal.voLargeScreen.VoBaseInfo;
 import com.dy.pipIrrGlobal.voLargeScreen.VoCurrentInfo;
 import com.dy.pipIrrGlobal.voLargeScreen.VoMonitorInfo;
+import com.dy.pipIrrGlobal.voSpecial.VoTopXClient;
+import com.dy.pipIrrGlobal.voSpecial.VoTopXIntake;
 import io.swagger.v3.oas.annotations.Operation;
 import io.swagger.v3.oas.annotations.media.Content;
 import io.swagger.v3.oas.annotations.media.Schema;
@@ -22,6 +24,7 @@
 import org.springframework.web.bind.annotation.RestController;
 
 import java.util.Date;
+import java.util.List;
 
 /**
  * @Author: liurunyu
@@ -59,6 +62,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);
     }
@@ -109,4 +132,47 @@
         return BaseResponseUtils.buildSuccess(res);
     }
 
+
+
+    /**
+     * 鏄ㄦ棩鍐滄埛鐢ㄦ按鍓�5鍚�
+     * @return 鏁版嵁闆嗗悎
+     */
+    @Operation(summary = "鏄ㄦ棩鍐滄埛鐢ㄦ按鍓�5鍚�", description = "鏄ㄦ棩鍐滄埛鐢ㄦ按鍓�5鍚嶇粺璁�")
+    @ApiResponses(value = {
+            @ApiResponse(
+                    responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE,
+                    description = "鏄ㄦ棩鍐滄埛鐢ㄦ按鍓�5鍚嶇粺璁★紙BaseResponse.content:[VoTopXClient{}]锛�",
+                    content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
+                            schema = @Schema(implementation = VoTopXClient.class))}
+            )
+    })
+    @GetMapping(path = "top5ClientYesterday")
+    @SsoAop()
+    public BaseResponse<List<VoTopXClient>> top5ClientYesterday(){
+        List<VoTopXClient> res = this.sv.top5ClientYesterday();
+        return BaseResponseUtils.buildSuccess(res);
+    }
+
+    /**
+     * 鏄ㄦ棩鍙栨按鍙g敤姘村墠5鍚�
+     * @return 鏁版嵁闆嗗悎
+     */
+    @Operation(summary = "鏄ㄦ棩鍙栨按鍙g敤姘村墠5鍚�", description = "鏄ㄦ棩鍙栨按鍙g敤姘村墠5鍚嶇粺璁�")
+    @ApiResponses(value = {
+            @ApiResponse(
+                    responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE,
+                    description = "鏄ㄦ棩鍙栨按鍙g敤姘村墠5鍚嶇粺璁★紙BaseResponse.content:[VoTopXIntake{}]锛�",
+                    content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
+                            schema = @Schema(implementation = VoTopXIntake.class))}
+            )
+    })
+    @GetMapping(path = "top5IntakeYesterday")
+    @SsoAop()
+    public BaseResponse<List<VoTopXIntake>> top5IntakeYesterday(){
+        List<VoTopXIntake> res = this.sv.top5IntakeYesterday();
+        return BaseResponseUtils.buildSuccess(res);
+    }
+
+
 }

--
Gitblit v1.8.0