From 4c48c61c5759da5d150395d044307b1581faf4cf Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期六, 17 五月 2025 16:12:51 +0800 Subject: [PATCH] 机房,电源,电池组信息管理修改 --- src/main/resources/mapper/PowerInfMapper.xml | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/PowerInfMapper.xml b/src/main/resources/mapper/PowerInfMapper.xml index 505a561..c72433e 100644 --- a/src/main/resources/mapper/PowerInfMapper.xml +++ b/src/main/resources/mapper/PowerInfMapper.xml @@ -65,5 +65,17 @@ </if> </where> </select> + <select id="getProtocolByUid" resultType="java.lang.String"> + select distinct protocol from db_station.tb_power_inf + <where> + <if test="uid>100"> + and tb_power_inf.power_id in( + select distinct power_id from db_user.tb_baojigroup_power,db_user.tb_baojigroup_usr + where tb_baojigroup_power.baoji_group_id=tb_baojigroup_usr.baoji_group_id + and tb_baojigroup_usr.uid=#{uid} + ) + </if> + </where> + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1