From b78295e8da96c3e5e76befeef9582ce5273dbb74 Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期二, 29 九月 2026 13:10:23 +0800
Subject: [PATCH] 按代码规范检查整改实体注释、Service Javadoc 与分层边界

---
 battery-business/src/main/java/com/battery/business/mapper/TTestMapper.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/battery-business/src/main/java/com/battery/business/mapper/TTestMapper.java b/battery-business/src/main/java/com/battery/business/mapper/TTestMapper.java
index e315772..327206f 100644
--- a/battery-business/src/main/java/com/battery/business/mapper/TTestMapper.java
+++ b/battery-business/src/main/java/com/battery/business/mapper/TTestMapper.java
@@ -23,7 +23,7 @@
 import com.battery.business.domain.vo.TestTypeOptionVo;
 import com.battery.business.domain.vo.TestUserOptionVo;
 
-/** 测试配置及其只追加审计的数据访问接口。 */
+/** 读写测试配置、成功接收数据、修订记录和异常处理事实。 */
 public interface TTestMapper
 {
     int deleteTestWarningExceptionsByTestId(Long testId);
@@ -32,6 +32,8 @@
     int updateDataRecord(@Param("testId") Long testId, @Param("dataType") String dataType, @Param("recordId") Long recordId, @Param("values") java.util.Map<String, Object> values);
     int deleteDataRecord(@Param("testId") Long testId, @Param("dataType") String dataType, @Param("recordId") Long recordId);
     java.util.Map<String, Object> selectImportBinding(@Param("testId") Long testId, @Param("batteryNo") String batteryNo);
+    /** 查询当前测试该类事实,供整页导入校验身份和内容冲突。 */
+    List<java.util.Map<String, Object>> selectImportDataRecords(@Param("testId") Long testId, @Param("dataType") String dataType);
     int insertImportedDataRecord(@Param("dataType") String dataType, @Param("values") java.util.Map<String, Object> values);
     TTest selectTestById(Long testId);
     TTest selectTestByIdForUpdate(Long testId);
@@ -87,6 +89,9 @@
     int insertRealtimeRecord(TTestRealtimeRecord record);
     String selectRealtimeRecordContentHash(@Param("testId") Long testId, @Param("testBatteryId") Long testBatteryId,
             @Param("captureSlotUtc") Date captureSlotUtc);
+    /** 按来源行身份查询已保存的实时记录摘要;逐行接收据此做幂等与冲突判定。 */
+    String selectRealtimeRecordHashBySourceRecord(@Param("testBatteryId") Long testBatteryId,
+            @Param("sourceIdentity") String sourceIdentity, @Param("sourceRecordId") String sourceRecordId);
     int insertStepRecord(TTestStepRecord record);
     int insertCycleRecord(TTestCycleRecord record);
     String selectStepRecordContentHash(@Param("testBatteryId") Long testBatteryId,

--
Gitblit v1.7.1