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