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/StationInfMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/StationInfMapper.xml b/src/main/resources/mapper/StationInfMapper.xml
index 775d9ee..5927691 100644
--- a/src/main/resources/mapper/StationInfMapper.xml
+++ b/src/main/resources/mapper/StationInfMapper.xml
@@ -156,4 +156,17 @@
             </if>
         </where>
     </select>
+    <select id="getStationTypeByUid" resultType="java.lang.String">
+        select distinct station_type from db_station.tb_station_inf
+        <where>
+            <if test="uid>100">
+                and tb_station_inf.station_id in(
+                select distinct station_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