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/resources/mapper/BattInfMapper.xml |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/BattInfMapper.xml b/src/main/resources/mapper/BattInfMapper.xml
index 3692e5f..f572667 100644
--- a/src/main/resources/mapper/BattInfMapper.xml
+++ b/src/main/resources/mapper/BattInfMapper.xml
@@ -476,7 +476,7 @@
         </where>
         limit 1
     </select>
-    <select id="getBattgroupIdList" resultType="java.lang.Integer">
+    <select id="getBattgroupIdListByPowerId" resultType="java.lang.Integer">
         select distinct tb_batt_inf.battgroup_id
         from db_station.tb_batt_inf
         <where>
@@ -484,4 +484,12 @@
         </where>
         order by battgroup_num asc
     </select>
+    <select id="getBattgroupIdListByDevId" resultType="java.lang.Integer">
+        select distinct tb_batt_inf.battgroup_id
+        from db_station.tb_batt_inf
+        <where>
+            tb_batt_inf.dev_id=#{devId}
+        </where>
+        order by battgroup_num asc
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1