From 8fd70d84793cbc7453215d73a5e0b237bef242d7 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Wed, 19 Jun 2024 16:22:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E5=85=B3=E8=81=94=E7=9A=84=E7=A9=BA=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=94=A8=E4=BE=8B=E7=BB=9F=E8=AE=A1=E6=9C=89=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1042584 --user=宋昌昌 【测试计划】计划组中的子计划关联了重复的接口用例,执行报告中去重执行了 https://www.tapd.cn/55049933/s/1531827 --- .../mapper/ExtTestPlanReportApiCaseMapper.xml | 13 +++++++------ .../mapper/ExtTestPlanReportApiScenarioMapper.xml | 13 +++++++------ .../ExtTestPlanReportFunctionalCaseMapper.xml | 15 ++++++++------- 3 files changed, 22 insertions(+), 19 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 c67e9d8045..702400f8a3 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 @@ -2,7 +2,7 @@ @@ -25,10 +25,10 @@ - select tpras.api_scenario_execute_result as status, count(id) as count from test_plan_report_api_scenario tpras + select ifnull(tpras.api_scenario_execute_result, 'PENDING') as status, count(id) as count from test_plan_report_api_scenario tpras where tpras.test_plan_report_id = #{id} group by tpras.api_scenario_execute_result