yeg
2026-09-03 e35881f24e349e865d7a1dbbebc1a7e55ecc7a16
ruoyi-system/src/main/resources/mapper/system/TTestMapper.xml
@@ -26,6 +26,7 @@
        <result property="updateTime" column="update_time" />
        <result property="remark" column="remark" />
        <result property="logicStepMappingsJson" column="logic_step_mappings_json" />
        <result property="consoleDetailJson" column="console_detail_json" />
        <result property="batteryCount" column="battery_count" />
        <result property="batteryNo" column="battery_no" />
    </resultMap>
@@ -120,6 +121,7 @@
               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,
               cast(t.console_detail_json as char) console_detail_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
        from t_test t
@@ -478,6 +480,10 @@
            update_by = #{updateBy}, update_time = #{updateTime}
        where test_id = #{testId} and del_flag = 0
    </update>
    <update id="updateConsoleDetail">
        update t_test set console_detail_json = cast(#{detailJson} as json)
        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