From 8e85ad8e022d2885c410d0654bce08e2a392b08f Mon Sep 17 00:00:00 2001
From: whycxzp <glperry@163.com>
Date: 星期一, 14 四月 2025 09:15:55 +0800
Subject: [PATCH] 放电记录查询

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

diff --git a/src/main/resources/mapper/BattTestInfMapper.xml b/src/main/resources/mapper/BattTestInfMapper.xml
index 7fd98c8..182b343 100644
--- a/src/main/resources/mapper/BattTestInfMapper.xml
+++ b/src/main/resources/mapper/BattTestInfMapper.xml
@@ -53,4 +53,13 @@
         </where>
         ORDER BY db_dis_batt.batt_test_inf.BattGroupId asc, test_starttime desc
     </select>
+    <select id="getDischargeList" resultType="com.whyc.pojo.db_dis_batt.BattTestInf">
+        select
+        binf_name as battGroupName,batt_test_inf.binf_id as battGroupId,test_record_count,group_vol,test_curr,max_monvol,min_monvol,test_cap,test_starttime,record_time,test_timelong,test_stoptype
+        from db_dis_batt.batt_test_inf,db_batt.power_inf where db_batt.power_inf.binf_id=db_dis_batt.batt_test_inf.binf_id
+        and test_starttype=3 and test_type=3
+        and (test_stoptype in (3, 4, 6)
+        or (test_stoptype=2 and test_timelong>=7200))
+        ORDER BY db_dis_batt.batt_test_inf.test_starttime desc
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1