From d5cf76188ad37f062f37ebce3464097203b4db05 Mon Sep 17 00:00:00 2001
From: whycxzp <perryhsu@163.com>
Date: 星期二, 12 十月 2021 15:56:48 +0800
Subject: [PATCH] 去除电池状态-均充

---
 src/main/java/com/whyc/controller/BatteryAlarmController.java |   53 ++++++++++++++---------------------------------------
 1 files changed, 14 insertions(+), 39 deletions(-)

diff --git a/src/main/java/com/whyc/controller/BatteryAlarmController.java b/src/main/java/com/whyc/controller/BatteryAlarmController.java
index f8dabc5..60941ef 100644
--- a/src/main/java/com/whyc/controller/BatteryAlarmController.java
+++ b/src/main/java/com/whyc/controller/BatteryAlarmController.java
@@ -8,6 +8,7 @@
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
 
 import javax.servlet.http.HttpServletRequest;
@@ -18,77 +19,51 @@
  */
 @RestController
 @RequestMapping("batteryAlarm")
-@Api(tags = "鐢垫睜鍛婅")
+@Api(tags = "鐢垫睜鍛婅缁熻")
 public class BatteryAlarmController {
 
     @Autowired
     private BatteryAlarmService service;
 
     @GetMapping("monCapacity")
-    @ApiOperation(notes = "", value = "鍗曚綋瀹归噺鍛婅浣庣粺璁�")
-    public Response<Map> getMonCapacityLowAnalysis(HttpServletRequest request) {
-        int userId = CommonUtil.getUser(request).getId();
-
+    @ApiOperation(value = "鍗曚綋瀹归噺鍛婅浣庣粺璁�")
+    public Response<Map> getMonCapacityLowAnalysis(@RequestParam Integer userId) {
         return service.getMonCapacityLowAnalysis(userId);
 
     }
 
-
-    /**
-     * 鍐呴樆娴嬭瘯鏁伴噺銆佹晠闅滄暟閲�
-     *
-     * @param request
-     * @return
-     */
     @GetMapping("onlinegroupVolAnalysis")
-    @ApiOperation(notes = "", value = "鍦ㄧ嚎鐢靛帇鍜岀粍绔數鍘�")
-    public Response<Map> getOnlineAndGroupVolAnalysis(HttpServletRequest request) {
-        int userId = CommonUtil.getUser(request).getId();
-
+    @ApiOperation(value = "鍦ㄧ嚎鐢靛帇鍜岀粍绔數鍘嬪憡璀�")
+    public Response<Map> getOnlineAndGroupVolAnalysis(@RequestParam Integer userId) {
         return service.getOnlineAndGroupVolAnalysis(userId);
 
     }
 
-
-    /**
-     * BTS 璁惧鐘舵��
-     *
-     * @param request
-     * @return
-     */
     @GetMapping("btsStatus")
-    @ApiOperation(notes = "", value = "BTS璁惧鐘舵��")
-    public Response<Map> getBTSEquipStatus(HttpServletRequest request) {
-        int userId = CommonUtil.getUser(request).getId();
-
+    @ApiOperation(value = "BTS璁惧鐘舵��")
+    public Response<Map> getBTSEquipStatus(@RequestParam Integer userId) {
         return service.getBTSEquipStatus(userId);
 
     }
 
 
     @GetMapping("dischargeAnalysis")
-    @ApiOperation(notes = "", value = "鏀剧數鐢垫祦")
-    public Response<Map> getDischargeAnalysis(HttpServletRequest request) {
-        int userId = CommonUtil.getUser(request).getId();
-
+    @ApiOperation(value = "鏀剧數鐢垫祦鍛婅")
+    public Response<Map> getDischargeAnalysis(@RequestParam Integer userId) {
         return service.getDischargeAnalysis(userId);
 
     }
 
     @GetMapping("chargeAnalysis")
-    @ApiOperation(notes = "", value = "鏀剧數鍜� 鍏呯數鐢垫祦")
-    public Response<Map> getChargeAnalysis(HttpServletRequest request) {
-        int userId = CommonUtil.getUser(request).getId();
-
+    @ApiOperation(value = "鏀剧數鍜屽厖鐢电數娴佸憡璀�")
+    public Response<Map> getChargeAnalysis(@RequestParam Integer userId) {
         return service.getChargeAnalysis(userId);
 
     }
 
     @GetMapping("monVRTAnalysis")
-    @ApiOperation(notes = "", value = "鍗曚綋鐢靛帇銆佸唴闃诲拰娓╁害鐘舵��")
-    public Response<Map> getMonVRTAnalysis(HttpServletRequest request) {
-        int userId = CommonUtil.getUser(request).getId();
-
+    @ApiOperation(value = "鍗曚綋鐢靛帇/鍐呴樆/娓╁害鍛婅")
+    public Response<Map> getMonVRTAnalysis(@RequestParam Integer userId) {
         return service.getMonVRTAnalysis(userId);
 
     }

--
Gitblit v1.9.1