From e6cd256f189c1cd43fec2c45b2c35b16861e22f8 Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期二, 05 十一月 2024 15:05:35 +0800 Subject: [PATCH] 国网电源获取当前天负载电流的平均值 --- src/main/java/com/whyc/controller/PwrDevDataHistoryGWController.java | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/whyc/controller/PwrDevDataHistoryGWController.java b/src/main/java/com/whyc/controller/PwrDevDataHistoryGWController.java index aefe0c0..93a2001 100644 --- a/src/main/java/com/whyc/controller/PwrDevDataHistoryGWController.java +++ b/src/main/java/com/whyc/controller/PwrDevDataHistoryGWController.java @@ -6,10 +6,7 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import java.text.ParseException; @@ -28,4 +25,10 @@ return service.getListByParam(param); } + @GetMapping("getAvgLoadCurr") + @ApiOperation("鑾峰彇褰撳墠澶╁钩鍧囪礋杞界數娴�") + public Response getAvgLoadCurr(@RequestParam Integer powerId) { + return service.getAvgLoadCurr(powerId); + } + } -- Gitblit v1.9.1