From 2753ad7aee272a5a5a8a0124b1feea5a1e4cc83e Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期五, 20 六月 2025 22:40:52 +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 2242c18..3692e5f 100644 --- a/src/main/resources/mapper/BattInfMapper.xml +++ b/src/main/resources/mapper/BattInfMapper.xml @@ -466,7 +466,7 @@ </if> </where> </select> - <select id="getBattgroupIdList" resultType="com.whyc.pojo.db_station.BattInf"> + <select id="getBattgroupIdInf" resultType="com.whyc.pojo.db_station.BattInf"> select distinct tb_batt_inf.* ,tb_station_inf.station_type,tb_station_inf.station_name,tb_station_inf.provice,tb_station_inf.city,tb_station_inf.country,tb_station_inf.full_name from db_station.tb_batt_inf,db_station.tb_station_inf @@ -476,4 +476,12 @@ </where> limit 1 </select> + <select id="getBattgroupIdList" resultType="java.lang.Integer"> + select distinct tb_batt_inf.battgroup_id + from db_station.tb_batt_inf + <where> + tb_batt_inf.power_id=#{powerId} + </where> + order by battgroup_num asc + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1