From 4297d17c914dc6b2d64388776ba0db7fb093c1b9 Mon Sep 17 00:00:00 2001 From: zhubaomin <zhubaomin> Date: 星期六, 29 三月 2025 08:32:03 +0800 Subject: [PATCH] 轮灌组添加接口、删除接口 --- pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/largeScreen/Ls4StatisticsCtrl.java | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 53 insertions(+), 2 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 e42cbc0..5c35c16 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 @@ -1,12 +1,15 @@ 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; @@ -21,6 +24,7 @@ import org.springframework.web.bind.annotation.RestController; import java.util.Date; +import java.util.List; /** * @Author: liurunyu @@ -86,7 +90,7 @@ /** * 澶у睆灞曠ず---鐩戞祴淇℃伅 * @return 鐩戞祴淇℃伅 - * @param startDt 寮�濮嬫棩鏈燂紙鏍煎紡 yyyy-mm-dd锛� + * @param fromDt 寮�濮嬫棩鏈燂紙鏍煎紡 yyyy-mm-dd锛� */ @Operation(summary = "澶у睆灞曠ず", description = "鐩戞祴淇℃伅") @ApiResponses(value = { @@ -99,9 +103,56 @@ }) @GetMapping(path = "monitorInfo") @SsoAop() - public BaseResponse<VoMonitorInfo> monitorInfo(Date startDt) { + 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