From 977e73a63a7c6b1612f52ad076105818b42b9adf Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Wed, 23 Oct 2024 10:56:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8A=A5=E5=91=8A=E6=98=8E=E7=BB=86):=20?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E6=98=8E=E7=BB=86=E6=9F=A5=E8=AF=A2=E8=A1=A5?= =?UTF-8?q?=E5=85=85=E6=B5=8B=E8=AF=95=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plan/dto/ReportDetailCasePageDTO.java | 5 ++++ .../mapper/ExtTestPlanReportApiCaseMapper.xml | 2 +- .../ExtTestPlanReportApiScenarioMapper.xml | 2 +- .../ExtTestPlanReportFunctionalCaseMapper.xml | 2 +- .../plan/service/TestPlanReportService.java | 26 ++++++++++++++++++- 5 files changed, 33 insertions(+), 4 deletions(-) diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/ReportDetailCasePageDTO.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/ReportDetailCasePageDTO.java index 5df16c9b7f..d68cb706ae 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/ReportDetailCasePageDTO.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/ReportDetailCasePageDTO.java @@ -5,6 +5,7 @@ import lombok.Data; /** * 报告详情用例分页返回对象 (功能, 接口, 场景) + * @author song-cc-rock */ @Data @@ -32,4 +33,8 @@ public class ReportDetailCasePageDTO { private String reportId; @Schema(description = "项目ID") private String projectId; + @Schema(description = "测试点ID") + private String collectionId; + @Schema(description = "测试点名称") + private String collectionName; } 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 3c7b8cbd8d..bd5877d44f 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 @@ -33,7 +33,7 @@ - select distinct tpras.api_scenario_id as id, tpras.api_scenario_num as num, tpras.api_scenario_name as name, tpras.test_plan_name as planName, + select distinct tpras.api_scenario_id as id, tpras.api_scenario_num as num, tpras.api_scenario_name as name, tpras.test_plan_name as planName, tpras.test_plan_collection_id collectionId, tpras.api_scenario_module as moduleName, tpras.api_scenario_priority as priority, tpras.api_scenario_execute_report_id reportId, ifnull(tpras.api_scenario_bug_count, 0) as bugCount, ifnull(tpras.api_scenario_execute_result, 'PENDING') as executeResult, tpras.api_scenario_execute_user as executeUser, aso.project_id projectId from test_plan_report_api_scenario tpras left join api_scenario aso on tpras.api_scenario_id = aso.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 d4629dc77f..8ff9ed1b44 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 @@ -51,7 +51,7 @@