diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanBugCaseDTO.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanBugCaseDTO.java index 50cde15260..a8b9186a02 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanBugCaseDTO.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanBugCaseDTO.java @@ -18,4 +18,6 @@ public class TestPlanBugCaseDTO { private String bugId; @Schema(description = "用例名称") private String name; + @Schema(description = "项目ID") + private String projectId; } diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanBugMapper.xml b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanBugMapper.xml index 3cc16a5b6a..64ee80da77 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanBugMapper.xml +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanBugMapper.xml @@ -42,7 +42,7 @@ select tpac.id as testPlanApiCaseId, atc.id as apiCaseId, atc.num as apiCaseNum, atc.name as apiCaseName, atc.priority as apiCasePriority, tpac.test_plan_collection_id testPlanCollectionId, tpac.environment_id as environmentId, - if(ad.module_id = 'root','未规划用例', ad.module_id) as apiCaseModule, tpac.execute_user as apiCaseExecuteUser, + if(ad.module_id = 'root','未规划接口', ad.module_id) as apiCaseModule, tpac.execute_user as apiCaseExecuteUser, ifnull(tpac.last_exec_result, 'PENDING') as apiCaseExecuteResult, tpac.last_exec_report_id apiCaseExecuteReportId, tpac.pos as pos from test_plan_api_case tpac join api_test_case atc on atc.id = tpac.api_case_id left join api_definition ad on atc.api_definition_id = ad.id @@ -40,7 +40,8 @@ where tprac.test_plan_report_id = #{request.reportId} and (tprac.api_case_num like concat('%', #{request.keyword}, '%') - or tprac.api_case_name like concat('%', #{request.keyword}, '%')) + or tprac.api_case_name like concat('%', #{request.keyword}, '%') + or tprac.api_case_module like concat('%', #{request.keyword}, '%')) and tprac.test_plan_collection_id = #{request.collectionId} 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 321df54f35..d7ecb2fafb 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 @@ -10,7 +10,7 @@