From e16302f9d475c7cc4dd18c5abf1a23cb5502e362 Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期三, 28 五月 2025 14:57:56 +0800 Subject: [PATCH] 密码验证加- --- src/main/java/com/whyc/controller/PwrDevDataHistoryGWController.java | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/whyc/controller/PwrDevDataHistoryGWController.java b/src/main/java/com/whyc/controller/PwrDevDataHistoryGWController.java index a3e2e0d..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; @@ -17,7 +14,7 @@ @RestController @RequestMapping("powerDataHistoryGW") @Api(tags = "鐢垫簮鍘嗗彶鏁版嵁-鍥界綉") -public class PwrDevDataHistoryGWController { +public class PwrDevDataHistoryGWController extends BaseController{ @Autowired private PwrDevDataHistoryGWService service; @@ -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