From 14c03b65ebfc62d32bcfeff2c1b4338247b50729 Mon Sep 17 00:00:00 2001
From: whycxzp <glperry@163.com>
Date: 星期五, 13 六月 2025 16:54:51 +0800
Subject: [PATCH] 蓄电池核容测试信息统计

---
 src/main/resources/mapper/BatttestdataInfMapper.xml |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/BatttestdataInfMapper.xml b/src/main/resources/mapper/BatttestdataInfMapper.xml
index 762b55d..37571f4 100644
--- a/src/main/resources/mapper/BatttestdataInfMapper.xml
+++ b/src/main/resources/mapper/BatttestdataInfMapper.xml
@@ -61,4 +61,14 @@
         </where>
         order by test_starttime desc
     </select>
+    <select id="getListByUserId" resultType="com.whyc.pojo.db_batt_testdata.BatttestdataInf">
+        select * from db_batt_testdata.tb_batttestdata_inf
+        where battgroup_id in(
+            select distinct battgroup_id from db_user.tb_baojigroup_usr bu,db_user.tb_baojigroup_power bp,db_station.tb_batt_inf bi
+            where bu.baoji_group_id = bp.baoji_group_id
+            and bp.station_id = bi.station_id
+            and bu.uid = #{userId}
+        )
+
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1