From f6a71c7def0470b526d0e0b29e3b3fe7df930286 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 7 Sep 2021 15:15:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B5=8B=E8=AF=95=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E5=85=B3=E8=81=94=E9=A1=B5=E6=B7=BB=E5=8A=A0=E9=AB=98?= =?UTF-8?q?=E7=BA=A7=E6=90=9C=E7=B4=A2#1002978?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --story=1002978 --user=lyh 6.测试计划关联测试用例 搜索后面加高级搜索,包括 接口用例、场景用例、性能用例 https://www.tapd.cn/55049933/s/1044468 --- .../mapper/ext/ExtTestPlanLoadCaseMapper.xml | 82 +++++++++++++++++++ .../request/testplan/LoadCaseRequest.java | 2 +- .../scenario/api/RelevanceApiList.vue | 21 ++++- .../scenario/api/RelevanceCaseList.vue | 20 ++++- .../components/search/search-components.js | 7 ++ .../comonents/api/RelevanceScenarioList.vue | 54 ++++++++---- .../TestCaseFunctionalRelevance.vue | 5 +- .../comonents/load/TestCaseLoadRelevance.vue | 30 +++++-- 8 files changed, 187 insertions(+), 34 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 e2a1dc965f..854ba95a67 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 @@ -34,10 +34,92 @@ + + + + + + + and load_test.id not in ( select tplc.load_case_id from test_plan_load_case tplc where tplc.test_plan_id = #{request.testPlanId} ) + + + + like CONCAT('%', #{${object}.value},'%') + + + not like CONCAT('%', #{${object}.value},'%') + + + in + + #{v} + + + + not in + + #{v} + + + + between #{${object}.value[0]} and #{${object}.value[1]} + + + > #{${object}.value} + + + < #{${object}.value} + + + >= #{${object}.value} + + + <= #{${object}.value} + + + = '${@io.metersphere.commons.utils.SessionUtils@getUserId()}' + + + = #{${object}.value} + + + + + + and load_test.name + + + + + + and load_test.update_time + + + + + + and load_test.create_time + + + + + + and load_test.status + + + + + + and load_test.create_user + + + + +