From 17e84d31e82f94dd5a4bb06603ad57b34affc9c4 Mon Sep 17 00:00:00 2001 From: junhong Date: Tue, 14 Jun 2022 20:02:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(UI=20=E8=87=AA=E5=8A=A8=E5=8C=96):=20UI=20?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E5=9C=BA=E6=99=AF=E9=80=9F=E5=BA=A6=E6=85=A2?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013567 --user=周骏弘 【UI测试】导入较多场景-较慢 https://www.tapd.cn/55049933/s/1181571 --- .../base/mapper/UiScenarioMapper.xml | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/UiScenarioMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/UiScenarioMapper.xml index bd89eb9332..817bc5c985 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/UiScenarioMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/UiScenarioMapper.xml @@ -160,27 +160,25 @@ insert into ui_scenario (id, project_id, tags, user_id, module_id, module_path, `name`, `level`, `status`, - principal, step_total, schedule, + principal, step_total, create_time, update_time, pass_rate, last_result, report_id, num, original_state, custom_num, create_user, version, delete_time, delete_user_id, - execute_times, `order`, environment_type, - environment_group_id, version_id, ref_id, - latest, scenario_definition, description, - use_url, environment_json) + execute_times, `order`, + version_id, ref_id, + latest, scenario_definition, description) values (#{id,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{tags,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{moduleId,jdbcType=VARCHAR}, #{modulePath,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{level,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, - #{principal,jdbcType=VARCHAR}, #{stepTotal,jdbcType=INTEGER}, #{schedule,jdbcType=VARCHAR}, + #{principal,jdbcType=VARCHAR}, #{stepTotal,jdbcType=INTEGER}, #{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT}, #{passRate,jdbcType=VARCHAR}, #{lastResult,jdbcType=VARCHAR}, #{reportId,jdbcType=VARCHAR}, #{num,jdbcType=INTEGER}, #{originalState,jdbcType=VARCHAR}, #{customNum,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{version,jdbcType=INTEGER}, #{deleteTime,jdbcType=BIGINT}, #{deleteUserId,jdbcType=VARCHAR}, - #{executeTimes,jdbcType=INTEGER}, #{order,jdbcType=BIGINT}, #{environmentType,jdbcType=VARCHAR}, - #{environmentGroupId,jdbcType=VARCHAR}, #{versionId,jdbcType=VARCHAR}, #{refId,jdbcType=VARCHAR}, - #{latest,jdbcType=BIT}, #{scenarioDefinition,jdbcType=LONGVARCHAR}, #{description,jdbcType=LONGVARCHAR}, - #{useUrl,jdbcType=LONGVARCHAR}, #{environmentJson,jdbcType=LONGVARCHAR}) + #{executeTimes,jdbcType=INTEGER}, #{order,jdbcType=BIGINT}, + #{versionId,jdbcType=VARCHAR}, #{refId,jdbcType=VARCHAR}, + #{latest,jdbcType=BIT}, #{scenarioDefinition,jdbcType=LONGVARCHAR}, #{description,jdbcType=LONGVARCHAR}) insert into ui_scenario @@ -716,7 +714,6 @@ `status` = #{status,jdbcType=VARCHAR}, principal = #{principal,jdbcType=VARCHAR}, step_total = #{stepTotal,jdbcType=INTEGER}, - schedule = #{schedule,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=BIGINT}, update_time = #{updateTime,jdbcType=BIGINT}, pass_rate = #{passRate,jdbcType=VARCHAR}, @@ -731,15 +728,11 @@ delete_user_id = #{deleteUserId,jdbcType=VARCHAR}, execute_times = #{executeTimes,jdbcType=INTEGER}, `order` = #{order,jdbcType=BIGINT}, - environment_type = #{environmentType,jdbcType=VARCHAR}, - environment_group_id = #{environmentGroupId,jdbcType=VARCHAR}, version_id = #{versionId,jdbcType=VARCHAR}, ref_id = #{refId,jdbcType=VARCHAR}, latest = #{latest,jdbcType=BIT}, scenario_definition = #{scenarioDefinition,jdbcType=LONGVARCHAR}, - description = #{description,jdbcType=LONGVARCHAR}, - use_url = #{useUrl,jdbcType=LONGVARCHAR}, - environment_json = #{environmentJson,jdbcType=LONGVARCHAR} + description = #{description,jdbcType=LONGVARCHAR} where id = #{id,jdbcType=VARCHAR}