From 844594bc560ba6c5dd7f92ce3301295fb980282a Mon Sep 17 00:00:00 2001
From: zhubaomin <zhubaomin>
Date: 星期四, 08 五月 2025 21:09:42 +0800
Subject: [PATCH] 充值机模块,获取农户及开卡三个接口

---
 pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/largeScreen/Ls4StatisticsCtrl.java |  178 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 178 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
new file mode 100644
index 0000000..7d6c964
--- /dev/null
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/largeScreen/Ls4StatisticsCtrl.java
@@ -0,0 +1,178 @@
+package com.dy.pipIrrStatistics.largeScreen;
+
+import com.dy.common.aop.SsoAop;
+import com.dy.common.util.DateTime;
+import com.dy.common.webUtil.BaseResponse;
+import com.dy.common.webUtil.BaseResponseUtils;
+import com.dy.common.webUtil.ResultCodeMsg;
+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;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
+import io.swagger.v3.oas.annotations.responses.ApiResponses;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.MediaType;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.Date;
+import java.util.List;
+
+/**
+ * @Author: liurunyu
+ * @Date: 2025/2/6 10:32
+ * @Description
+ */
+@Slf4j
+@Tag(name = "澶у睆灞曠ず", description = "澶у睆灞曠ず---缁熻淇℃伅")
+@RestController
+@RequestMapping(path = "ls4Statistics")
+@SuppressWarnings("unchecked")//java鐗堟湰瓒婇珮锛屽娉涘瀷绾︽潫瓒婁弗锛屾墍浠ラ厤缃甋uppressWarnings("unchecked")
+public class Ls4StatisticsCtrl {
+
+    private Ls4StatisticsSv sv;
+
+    @Autowired
+    private void setSv(Ls4StatisticsSv sv) {
+        this.sv = sv;
+    }
+
+
+    /**
+     * 澶у睆灞曠ず---鍩烘湰淇℃伅
+     * @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 = "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);
+    }
+
+
+    /**
+     * 澶у睆灞曠ず---褰撳墠淇℃伅
+     * @return 褰撳墠淇℃伅
+     */
+    @Operation(summary = "澶у睆灞曠ず", description = "褰撳墠淇℃伅")
+    @ApiResponses(value = {
+            @ApiResponse(
+                    responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE,
+                    description = "鍩烘湰淇℃伅锛圔aseResponse.content:VoCurrentInfo{}锛�",
+                    content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
+                            schema = @Schema(implementation = VoCurrentInfo.class))}
+            )
+    })
+    @GetMapping(path = "currentInfo")
+    @SsoAop()
+    public BaseResponse<VoCurrentInfo> currentInfo() throws Exception {
+        VoCurrentInfo res = this.sv.currentInfo();
+        return BaseResponseUtils.buildSuccess(res);
+    }
+
+    /**
+     * 澶у睆灞曠ず---鐩戞祴淇℃伅
+     * @return 鐩戞祴淇℃伅
+     * @param fromDt 寮�濮嬫棩鏈燂紙鏍煎紡 yyyy-mm-dd锛�
+     */
+    @Operation(summary = "澶у睆灞曠ず", description = "鐩戞祴淇℃伅")
+    @ApiResponses(value = {
+            @ApiResponse(
+                    responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE,
+                    description = "鍩烘湰淇℃伅锛圔aseResponse.content:VoMonitorInfo{}锛�",
+                    content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
+                            schema = @Schema(implementation = VoMonitorInfo.class))}
+            )
+    })
+    @GetMapping(path = "monitorInfo")
+    @SsoAop()
+    public BaseResponse<VoMonitorInfo> monitorInfo(String fromDt) throws Exception {
+        if(fromDt == null || fromDt.trim().equals("")){
+            return BaseResponseUtils.buildException("寮�濮嬫棩鏈熶笉鑳戒负绌�");
+        }
+        Date startDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(fromDt + " 00:00:00");
+        VoMonitorInfo res = this.sv.monitorInfo(startDt);
+        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