From 43c8a44f5651c52edb1cc823bbb120881f732e36 Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期一, 31 八月 2026 23:36:02 +0800
Subject: [PATCH] 实现测试工步设置与工步汇总
---
ruoyi-system/src/main/resources/mapper/system/TTestMapper.xml | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/ruoyi-system/src/main/resources/mapper/system/TTestMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TTestMapper.xml
index 8c4a6a1..0364b4d 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TTestMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TTestMapper.xml
@@ -28,6 +28,7 @@
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
+ <result property="logicStepMappingsJson" column="logic_step_mappings_json" />
<result property="batteryCount" column="battery_count" />
<result property="batteryNo" column="battery_no" />
</resultMap>
@@ -157,6 +158,7 @@
t.reception_status, t.monitor_timeout_minutes,
t.started_at_utc, t.ended_at_utc, t.del_flag,
t.create_by, t.create_time, t.update_by, t.update_time, t.remark,
+ cast(t.logic_step_mappings_json as char) logic_step_mappings_json,
(select count(1) from t_test_battery b where b.test_id = t.test_id and b.del_flag = 0) battery_count,
t.runtime_attach runtime_attach, t.backfill_status, t.backfill_started_at_utc,
t.backfill_completed_at_utc
@@ -352,6 +354,14 @@
<if test="endResultTime != null">and result.result_time <= #{endResultTime}</if>
order by result.result_time, result.result_id
</select>
+ <select id="selectLogicStepMappingsJson" resultType="string">
+ select cast(logic_step_mappings_json as char) from t_test where test_id = #{testId} and del_flag = 0
+ </select>
+ <update id="updateLogicStepMappings">
+ update t_test set logic_step_mappings_json = cast(#{mappingsJson} as json),
+ update_by = #{updateBy}, update_time = #{updateTime}
+ where test_id = #{testId} and del_flag = 0
+ </update>
<select id="countTestTypeEnabled" resultType="int">
select count(1) from t_test_type where test_type_id = #{testTypeId} and status = '0' and del_flag = 0
--
Gitblit v1.7.1