From 7d873fc626aa701337d3bd38bd1a061e0a4a56af Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Mon, 23 Sep 2024 10:39:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=9B=86=E5=88=97=E8=A1=A8=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=A8=A1=E5=9D=97=E6=90=9C=E7=B4=A2=E6=9C=89?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1046834 --user=宋昌昌 【测试计划】报告-报告详情-用例/接口/场景明细-开启测试点-根据模块名称搜索-无法搜索到对应数据 https://www.tapd.cn/55049933/s/1583303 --- .../metersphere/plan/mapper/ExtTestPlanReportApiCaseMapper.xml | 3 ++- .../plan/mapper/ExtTestPlanReportApiScenarioMapper.xml | 3 ++- .../plan/mapper/ExtTestPlanReportFunctionalCaseMapper.xml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanReportApiCaseMapper.xml b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanReportApiCaseMapper.xml index d167c01c8f..3c7b8cbd8d 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanReportApiCaseMapper.xml +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanReportApiCaseMapper.xml @@ -57,7 +57,8 @@ where tprac.test_plan_report_id = #{request.reportId} and (tprac.api_case_name like concat('%', #{request.keyword}, '%') - or tprac.api_case_num like concat('%', #{request.keyword}, '%')) + or tprac.api_case_num like concat('%', #{request.keyword}, '%') + or tprac.api_case_module like concat('%', #{request.keyword}, '%')) group by tprac.test_plan_collection_id diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanReportApiScenarioMapper.xml b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanReportApiScenarioMapper.xml index d7ecb2fafb..c73275832b 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanReportApiScenarioMapper.xml +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanReportApiScenarioMapper.xml @@ -56,7 +56,8 @@ where tpras.test_plan_report_id = #{request.reportId} and (tpras.api_scenario_name like concat('%', #{request.keyword}, '%') - or tpras.api_scenario_num like concat('%', #{request.keyword}, '%')) + or tpras.api_scenario_num like concat('%', #{request.keyword}, '%') + or tpras.api_scenario_module like concat('%', #{request.keyword}, '%')) group by tpras.test_plan_collection_id diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanReportFunctionalCaseMapper.xml b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanReportFunctionalCaseMapper.xml index db01a96097..d4629dc77f 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanReportFunctionalCaseMapper.xml +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanReportFunctionalCaseMapper.xml @@ -77,7 +77,8 @@ where tprfc.test_plan_report_id = #{request.reportId} and (tprfc.function_case_num like concat('%', #{request.keyword}, '%') - or tprfc.function_case_name like concat('%', #{request.keyword}, '%')) + or tprfc.function_case_name like concat('%', #{request.keyword}, '%') + or tprfc.function_case_module like concat('%', #{request.keyword}, '%')) group by tprfc.test_plan_collection_id