From 4eaa4be4d2cbd2aa49d36a313ce71ad3e743db4a Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期三, 02 九月 2026 12:22:53 +0800
Subject: [PATCH] 彻底清理补采完整性遗留依赖

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

diff --git a/ruoyi-system/src/main/resources/mapper/system/TTestMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TTestMapper.xml
index d3b21e5..4dd1e22 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TTestMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TTestMapper.xml
@@ -96,7 +96,6 @@
         <result property="maxValue" column="max_value" />
         <result property="unit" column="unit" />
         <result property="unitMetadata" column="unit_metadata" />
-        <result property="integrityConclusion" column="integrity_conclusion" />
         <result property="severity" column="severity" />
         <result property="delFlag" column="del_flag" />
     </resultMap>
@@ -496,10 +495,6 @@
         for update
     </select>
 
-    <update id="updateTestCompleted">
-        update t_test set test_status = 'COMPLETED', update_time = #{updatedAtUtc}
-        where test_id = #{testId} and reception_status = 'ENDED' and test_status = 'COMPLETION_PENDING'
-    </update>
     <select id="selectBtsSampleContentHash" resultType="string">
         select hex(content_sha256) from t_test_sample
         where channel_id = #{channelId} and bts_test_id = #{btsTestId} and seq_id = #{sequenceId}
@@ -519,10 +514,6 @@
         (sample_id, metric_code, metric_value, unit, source_type)
         values (#{sampleId}, #{metricCode}, #{metricValue}, #{unit}, #{sourceType})
     </insert>
-    <select id="selectBtsSampleId" resultType="long">
-        select sample_id from t_test_sample
-        where channel_id = #{channelId} and bts_test_id = #{btsTestId} and seq_id = #{sequenceId}
-    </select>
     <insert id="insertCollectorSample">
         insert ignore into t_test_collector_sample
         (test_id, binding_id, collector_id, collector_channel_code, sequence_id, device_time_utc,
@@ -530,16 +521,6 @@
         values (#{testId}, #{bindingId}, #{collectorId}, #{channelCode}, #{sequenceId}, #{deviceTimeUtc},
                 #{deviceTimeRaw}, #{receivedAtUtc}, #{metricCode}, #{metricValue}, #{unit}, #{contentSha256})
     </insert>
-    <select id="selectCollectorSampleId" resultType="long">
-        select sample_id from t_test_collector_sample
-        where collector_id = #{collectorId} and collector_channel_code = #{channelCode}
-          and sequence_id = #{sequenceId} and metric_code = #{metricCode}
-    </select>
-    <select id="selectCollectorSampleContentHash" resultType="string">
-        select hex(content_sha256) from t_test_collector_sample
-        where collector_id = #{collectorId} and collector_channel_code = #{channelCode}
-          and sequence_id = #{sequenceId} and metric_code = #{metricCode}
-    </select>
     <insert id="insertSampleConflict">
         insert into t_test_exception
         (test_id, channel_id, exception_type, exception_status, severity,

--
Gitblit v1.7.1