From 441f4fd8652a5d51c386d19eb27a7dbb2140b10b Mon Sep 17 00:00:00 2001
From: whyclxw <810412026@qq.com>
Date: 星期六, 17 五月 2025 14:03:17 +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 c8b6a79..60339c3 100644
--- a/src/main/resources/mapper/PowerInfMapper.xml
+++ b/src/main/resources/mapper/PowerInfMapper.xml
@@ -41,5 +41,17 @@
         </if>
 
     </select>
+    <select id="getCompanyByUid" resultType="java.lang.String">
+        select distinct company 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