From 31c0eda02d08791ba734ddee38262f7a004538b0 Mon Sep 17 00:00:00 2001 From: zhangdahai112 Date: Wed, 15 Jun 2022 16:29:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(UI=20=E8=87=AA=E5=8A=A8=E5=8C=96):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8A=A5=E5=91=8A=E6=90=9C=E7=B4=A2=E6=89=80?= =?UTF-8?q?=E5=B1=9E=E6=B5=8B=E8=AF=95=E5=8C=85=E5=90=AB=E4=B8=8E=E4=B8=8D?= =?UTF-8?q?=E5=8C=85=E5=90=AB=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1014116 --user=张大海 【UI测试】测试报告-高级搜索-所属测试不包含搜索结果等于包含结果 https://www.tapd.cn/55049933/s/1182906 --- .../base/mapper/ext/ExtApiScenarioReportMapper.xml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioReportMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioReportMapper.xml index 820d4084b4..3309be4532 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioReportMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioReportMapper.xml @@ -107,11 +107,21 @@ and `scenario_id` IN - (SELECT id FROM ui_scenario WHERE name like CONCAT('%', #{${condition}.testName.value},'%') ) + + (SELECT id FROM ui_scenario WHERE name like CONCAT('%', #{${condition}.testName.value},'%') ) + + + (SELECT id FROM ui_scenario WHERE name not like CONCAT('%', #{${condition}.testName.value},'%') ) + and `scenario_id` IN - (SELECT id FROM api_scenario WHERE name like CONCAT('%', #{${condition}.testName.value},'%') ) + + (SELECT id FROM api_scenario WHERE name like CONCAT('%', #{${condition}.testName.value},'%') ) + + + (SELECT id FROM api_scenario WHERE name not like CONCAT('%', #{${condition}.testName.value},'%') ) + and create_time