From bae185d2ff22c2537adc298cac905c9f5394d3c5 Mon Sep 17 00:00:00 2001
From: whyclxw <810412026@qq.com>
Date: 星期六, 21 六月 2025 09:04:27 +0800
Subject: [PATCH] 预警分析添加设备实时告警

---
 src/main/java/com/whyc/mapper/BattInfMapper.java |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 57 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/whyc/mapper/BattInfMapper.java b/src/main/java/com/whyc/mapper/BattInfMapper.java
index 332cd27..a58423e 100644
--- a/src/main/java/com/whyc/mapper/BattInfMapper.java
+++ b/src/main/java/com/whyc/mapper/BattInfMapper.java
@@ -1,7 +1,11 @@
 package com.whyc.mapper;
 
 import com.whyc.dto.BattDto;
+import com.whyc.dto.InfoDto;
+import com.whyc.dto.Param.ParamAlmDto;
+import com.whyc.dto.Statistic.*;
 import com.whyc.pojo.db_station.BattInf;
+import org.apache.ibatis.annotations.Param;
 
 import java.util.List;
 
@@ -10,6 +14,57 @@
     Integer getMaxdevId();
     //鑾峰彇瀵瑰簲鐨勭數姹犵粍id
     Integer getMaxBattGroupId();
-    //鏌ヨ鐢垫睜
-    List<BattInf> getBatt(BattDto dto);
+    //鏌ヨ鏈烘埧锛岀數婧愶紝鐢垫睜缁勪俊鎭�
+    List<InfoDto> getInfo(BattDto dto);
+    //妫�娴嬬數婧愪笅鏄惁瀛樺湪璁惧
+    Integer getMaxDevNum(@Param("powerId") Integer powerId);
+    //妫�娴嬭澶囦笅鏄惁瀛樺湪鐢垫睜缁�
+    Integer getMaxBattgroupNum(@Param("devId") Integer devId);
+    //鑾峰彇鐢垫睜鍝佺墝(涓嬫媺)
+    List<String> getProductByUid(@Param("uid") Integer uid);
+    //鑾峰彇鏍囩О鍗曚綋鐢靛帇(涓嬫媺)
+    List<Float> getMonVolByUid(@Param("uid") Integer uid);
+    //鑾峰彇璁惧鍨嬪彿(涓嬫媺)
+    List<String> getDevTypeByUid(@Param("uid") Integer uid);
+
+    //鑾峰彇鏍囩О瀹归噺(涓嬫媺)
+    List<Float> getMonCapByUid(@Param("uid") Integer uid);
+
+    //鑾峰彇鏍囩О鍐呴樆(涓嬫媺)
+    List<Float> getMonResByUid(@Param("uid") Integer uid);
+    //璁惧淇℃伅缁熻
+    List<BattInf> getDevStatistic(@Param("stic") StationStic stic);
+    //鑾峰彇璁惧涓嬬數姹犵粍涓暟
+    Integer getBattCountBydevId(Integer devId);
+    //钃勭數姹犵粍淇℃伅缁熻
+    List<BattInf> getBattStatistic(@Param("stic") StationStic stic);
+    //鍗曚綋缁熻鏌ヨ绗﹀悎鏉′欢鐨勭數姹犵粍
+    List<BattInf> getMonStatistic(@Param("stic") MonStic stic);
+    //钃勭數姹犵粍瀵规瘮鍒嗘瀽鐣岄潰
+    List<BattInf> getBattCompare15Statistic(@Param("stic") BattCompareStic stic);
+    //钃勭數姹犵粍瀵规瘮鍒嗘瀽鐣岄潰
+    List<BattInf> getBattCompare16Statistic(@Param("stic")  BattCompareStic stic);
+    //钃勭數姹犵粍瀵规瘮鍒嗘瀽鐣岄潰
+    List<BattInf> getBattCompare17Statistic(@Param("stic")  BattCompareStic stic);
+    //鏈勾搴﹀凡鏀剧數鏁伴噺缁熻(1.2.5)
+    List<BattInf> getDischr5Statistic(@Param("stic") DisChargeStic stic);
+    //鏈勾搴﹀凡鏀剧數鏁伴噺缁熻(1.2.6)
+    List<BattInf> getDischr6Statistic(@Param("stic") DisChargeStic stic);
+    //鐢垫睜缁勭數姹犳�ц兘缁熻锛堟湭鏀剧數锛屼紭绉�锛屽姡鍖栵紝鎹熷潖锛夌粺璁�(1.2.8/9/10)
+    List<BattInf> getPerformanceStatistic(@Param("stic") PerformanceStic stic);
+    //鏈勾搴﹀凡/鏈斁鐢垫暟閲忕粺璁″彸渚у浘琛�(1.2.5)
+    List<BattInf> getDischrChart(@Param("uid") Integer uid);
+
+    List<BattInf> getListByUserId(Integer userId);
+
+    List<BattInf> getListByCondition(Integer userId, BattInf battInf);
+
+    //鑾峰彇绔欑偣涓嬬殑鐢垫睜缁�(涓嬫媺)
+    List<BattInf> getBattByUid(@Param("uid") Integer uid, @Param("provice") String provice, @Param("city") String city, @Param("country") String country, @Param("stationName") String stationName);
+    //鏍规嵁鏌ヨ鏉′欢鑾峰彇鐢垫睜缁勯泦鍚�
+    BattInf getBattgroupIdInf(@Param("battgroupId") Integer battgroupId);
+    //鏌ヨ鐢垫簮涓嬫墍鏈夌殑鐢垫睜缁刬d
+    List<Integer> getBattgroupIdListByPowerId(@Param("powerId") Integer powerId);
+    //鏌ヨ璁惧涓嬫墍鏈夌殑鐢垫睜缁刬d
+    List<Integer> getBattgroupIdListByDevId(@Param("devId") Integer devId);
 }
\ No newline at end of file

--
Gitblit v1.9.1