From c2dc2817c4d6ba533b0fa0c746880d3727de3115 Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期一, 31 八月 2026 10:36:53 +0800
Subject: [PATCH] 实现检测结果历史查询闭环

---
 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TTestServiceImpl.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TTestServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TTestServiceImpl.java
index 3bfb6fd..037afc0 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TTestServiceImpl.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TTestServiceImpl.java
@@ -23,6 +23,8 @@
 import com.ruoyi.system.domain.TTestCollectorChannel;
 import com.ruoyi.system.domain.TTestPlanStep;
 import com.ruoyi.system.domain.TTestResult;
+import com.ruoyi.system.domain.TTestResultQuery;
+import com.ruoyi.system.domain.TTestResultRecord;
 import com.ruoyi.system.domain.TTestFieldSnapshot;
 import com.ruoyi.system.domain.TTestWarningThreshold;
 import com.ruoyi.system.domain.TDetectionChannel;
@@ -333,6 +335,12 @@
         return testMapper.selectTestResults(result);
     }
 
+    @Override
+    public List<TTestResultRecord> selectHistoricalResultRecords(TTestResultQuery query)
+    {
+        return testMapper.selectHistoricalResultRecords(query == null ? new TTestResultQuery() : query);
+    }
+
     private void loadConfiguration(TTest test)
     {
         Long testId = test.getTestId();

--
Gitblit v1.7.1