From 27428b31edee97703b529559146cdd7eef87a7a9 Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期六, 05 九月 2026 11:00:58 +0800
Subject: [PATCH] 完成测试数据接收持久化与查询

---
 ruoyi-system/src/main/java/com/ruoyi/system/mapper/TTestMapper.java |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TTestMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TTestMapper.java
index b19f56f..d0e401b 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TTestMapper.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TTestMapper.java
@@ -17,6 +17,9 @@
 import com.ruoyi.system.domain.TTestDataRevisionAction;
 import com.ruoyi.system.domain.TTestConsoleImportRecord;
 import com.ruoyi.system.domain.TTestDataOverride;
+import com.ruoyi.system.domain.TTestRealtimeRecord;
+import com.ruoyi.system.domain.TTestStepRecord;
+import com.ruoyi.system.domain.TTestCycleRecord;
 import com.ruoyi.system.domain.vo.TestBatteryOptionVo;
 import com.ruoyi.system.domain.vo.TestChannelOptionVo;
 import com.ruoyi.system.domain.vo.TestCollectorOptionVo;
@@ -84,6 +87,18 @@
             @Param("positivePotential") java.math.BigDecimal positivePotential,
             @Param("negativePotential") java.math.BigDecimal negativePotential,
             @Param("extensionMeasurementsJson") String extensionMeasurementsJson, @Param("contentSha256") byte[] contentSha256);
+    int insertRealtimeRecord(TTestRealtimeRecord record);
+    String selectRealtimeRecordContentHash(@Param("testId") Long testId, @Param("testBatteryId") Long testBatteryId,
+            @Param("captureSlotUtc") Date captureSlotUtc);
+    int insertStepRecord(TTestStepRecord record);
+    int insertCycleRecord(TTestCycleRecord record);
+    String selectStepRecordContentHash(@Param("testBatteryId") Long testBatteryId,
+            @Param("sourceIdentity") String sourceIdentity, @Param("dedupeKey") String dedupeKey);
+    String selectCycleRecordContentHash(@Param("testBatteryId") Long testBatteryId,
+            @Param("sourceIdentity") String sourceIdentity, @Param("dedupeKey") String dedupeKey);
+    List<java.util.Map<String, Object>> selectPersistedFinalRealtimeRecords(@Param("testId") Long testId);
+    List<java.util.Map<String, Object>> selectPersistedFinalStepRecords(@Param("testId") Long testId);
+    List<java.util.Map<String, Object>> selectPersistedFinalCycleRecords(@Param("testId") Long testId);
     List<java.util.Map<String, Object>> selectPersistedRealtimeSnapshots(@Param("testId") Long testId);
     List<java.util.Map<String, Object>> selectPersistedRecords(@org.apache.ibatis.annotations.Param("testId") Long testId);
     List<java.util.Map<String, Object>> selectPersistedCollectorRecords(@org.apache.ibatis.annotations.Param("testId") Long testId);

--
Gitblit v1.7.1