From d1cb58bebb89c000275d9b092dd644c809296707 Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期二, 01 九月 2026 15:52:56 +0800
Subject: [PATCH] 修复未开始测试继承设备历史
---
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TTestLiveServiceImpl.java | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TTestLiveServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TTestLiveServiceImpl.java
index 3a360d1..fab0140 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TTestLiveServiceImpl.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TTestLiveServiceImpl.java
@@ -106,9 +106,11 @@
|| battery.getBinding().getChlid() == null) continue;
try
{
- var source = simulator.btsTest(battery.getBinding().getDevid(), battery.getBinding().getChlid());
+ var source = "NOT_STARTED".equals(test.getReceptionStatus())
+ ? simulator.btsTest(battery.getBinding().getDevid(), battery.getBinding().getChlid(), 1)
+ : simulator.btsTest(battery.getBinding().getDevid(), battery.getBinding().getChlid());
List<TestPlanRow> rows = source.rows().stream()
- .map(row -> new TestPlanRow(row.rowType(), row.stepNo(), row.stepName(), row.durationSeconds(),
+ .map(row -> new TestPlanRow(row.rowType(), row.stepNo(), row.cyclePosition(), row.stepName(), row.durationSeconds(),
row.voltageV(), row.executionStatus(), row.cycleCount(), row.recordCount()))
.toList();
return new TestPlanSnapshot(source.currentCycleNo(), source.currentStepNo(),
--
Gitblit v1.7.1