From a791df8ce65bc126f0c98330b1a5834e0826e20d Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期一, 31 八月 2026 22:01:00 +0800
Subject: [PATCH] 修正停止测试完成状态

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

diff --git a/ruoyi-system/src/main/resources/mapper/system/TTestMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TTestMapper.xml
index 8fc2dce..8c4a6a1 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TTestMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TTestMapper.xml
@@ -182,7 +182,7 @@
                     or (#{testStatus} = 'RUNNING' and t.test_status = 'RUNNING'
                         and not exists (select 1 from t_test_collector_exception_interval exception_fact
                                         where exception_fact.test_id = t.test_id and exception_fact.interval_status = 'OPEN'))
-                    or (#{testStatus} = 'COMPLETED' and t.test_status in ('COMPLETED', 'TERMINATED'))
+                    or (#{testStatus} = 'COMPLETED' and t.test_status in ('COMPLETED', 'COMPLETION_PENDING', 'TERMINATED'))
                     or (#{testStatus} not in ('RUNNING', 'RUNNING_ABNORMAL', 'COMPLETED') and t.test_status = #{testStatus})
                 )
             </if>
@@ -725,8 +725,8 @@
     </update>
     <update id="updateReceptionStopped">
         update t_test
-        set test_status = 'COMPLETION_PENDING', reception_status = 'ENDED', ended_at_utc = #{endedAtUtc},
-            backfill_status = 'NOT_STARTED',
+        set test_status = 'COMPLETED', reception_status = 'ENDED', ended_at_utc = #{endedAtUtc},
+            backfill_status = 'COMPLETED',
             update_by = #{updateBy}, update_time = #{endedAtUtc}
         where test_id = #{testId} and reception_status in ('RECEIVING', 'PAUSED') and del_flag = 0
     </update>

--
Gitblit v1.7.1