From 2a0d63149431539aae2abf67b1302c9041220796 Mon Sep 17 00:00:00 2001
From: whyclxw <810412026@qq.com>
Date: 星期二, 10 六月 2025 14:53:38 +0800
Subject: [PATCH] 实时推送修改

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

diff --git a/src/main/resources/mapper/BatttestdataInfMapper.xml b/src/main/resources/mapper/BatttestdataInfMapper.xml
index 756b648..2ca8ffb 100644
--- a/src/main/resources/mapper/BatttestdataInfMapper.xml
+++ b/src/main/resources/mapper/BatttestdataInfMapper.xml
@@ -41,4 +41,23 @@
         </where>
         order by tb_batttestdata_inf.battgroup_id asc, tb_batttestdata_inf.test_record_count asc
     </select>
+    <select id="getNoDischargeData" resultType="com.whyc.pojo.db_batt_testdata.BatttestdataInf">
+        select * from db_batt_testdata.tb_batttestdata_inf
+        <where>
+            battgroup_id=#{battgroupId} and test_type=3
+            and (test_starttype!=3 or test_timelong &lt;7200)
+            <if test="stic.testStartTime!=null">
+                and tb_batttestdata_inf.test_starttime>=#{stic.testStartTime}
+            </if>
+            <if test="stic.testEndTime!=null">
+                and tb_batttestdata_inf.test_starttime&lt;=#{stic.testEndTime}
+            </if>
+            <if test="typeList!=null">
+                and test_stoptype in
+                <foreach item="item" index="index" collection="typeList" open="(" separator="," close=")">
+                    #{item}
+                </foreach>
+            </if>
+        </where>
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1