From 1f8715acbe5ac4bbaa61ac0224a7f3d77470ccad Mon Sep 17 00:00:00 2001
From: whycxzp <glperry@163.com>
Date: 星期二, 17 六月 2025 10:49:19 +0800
Subject: [PATCH] 领导层首页-设备数量概况信息统计

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

diff --git a/src/main/resources/mapper/BatttestdataInfMapper.xml b/src/main/resources/mapper/BatttestdataInfMapper.xml
index 37571f4..304aec3 100644
--- a/src/main/resources/mapper/BatttestdataInfMapper.xml
+++ b/src/main/resources/mapper/BatttestdataInfMapper.xml
@@ -71,4 +71,21 @@
         )
 
     </select>
+    <select id="getHrDisCount" resultType="java.lang.Integer">
+        select distinct battgroup_id from db_batt_testdata.tb_batttestdata_inf
+        where test_type=3
+        and test_starttype=3 and test_timelong >=7200
+        <if test="startTime!=null">
+            and test_starttime >= #{startTime}
+        </if>
+        <if test="endTime!=null">
+            and test_starttime &lt;= #{endTime}
+        </if>
+        and 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