From 7b111a5894b1efb2b0e80df8dcdb48d81908b6d5 Mon Sep 17 00:00:00 2001 From: metersphere-bot <78466014+metersphere-bot@users.noreply.github.com> Date: Tue, 25 May 2021 13:31:29 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=AF=95=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E7=94=A8=E4=BE=8B=E6=B7=BB=E5=8A=A0=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E7=AD=9B=E9=80=89=20(#3106)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: chenjianxing --- .../mapper/ext/ExtTestPlanLoadCaseMapper.xml | 9 +++- .../ext/ExtTestPlanScenarioCaseMapper.xml | 50 ++++++++----------- .../automation/scenario/ApiScenarioList.vue | 26 ++-------- .../comonents/api/RelevanceScenarioList.vue | 7 ++- .../comonents/api/TestPlanApiScenarioList.vue | 35 ++++++++++--- .../comonents/load/TestPlanLoadCaseList.vue | 2 +- .../ReviewRelevanceScenarioList.vue | 8 ++- frontend/src/common/js/table-constants.js | 21 ++++++++ 8 files changed, 90 insertions(+), 68 deletions(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.xml index b81d1c0aee..523b0446fa 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.xml @@ -70,7 +70,12 @@ order by - tplc.${order.name} ${order.type} + + lt.${order.name} ${order.type} + + + tplc.${order.name} ${order.type} + @@ -145,4 +150,4 @@ - \ No newline at end of file + diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanScenarioCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanScenarioCaseMapper.xml index beb2bdf02b..652d2fb42f 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanScenarioCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanScenarioCaseMapper.xml @@ -60,20 +60,8 @@ #{nodeId} - - - - - - and c.priority in - - #{value} - - - - - - + + order by @@ -133,20 +121,7 @@ #{nodeId} - - - - - - and c.priority in - - #{value} - - - - - - + order by @@ -162,6 +137,23 @@ + + + + + + + and c.level in + + #{value} + + + + + + + + - \ No newline at end of file + diff --git a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue index 2fdaa83c93..e6e2e60f96 100644 --- a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue +++ b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue @@ -1,10 +1,8 @@