From eb7f9bd214e1f0d272d873eb1c7c8586cc532397 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 9 Nov 2022 16:39:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E9=81=97=E7=95=99=E7=BC=BA=E9=99=B7=E5=8D=A0?= =?UTF-8?q?=E6=AF=94=E7=BB=9F=E8=AE=A1=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1017609 --user=陈建星 【测试跟踪】首页遗留缺陷统计总数和占比有统计错误 https://www.tapd.cn/55049933/s/1293338 --- .../base/mapper/ext/ExtTestCaseMapper.xml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml index 8cadaa92c5..cb811c4864 100644 --- a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml +++ b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml @@ -891,19 +891,8 @@ select distinct tci.issues_id from test_plan_test_case tptc join test_case_issues tci on tptc.id = tci.resource_id - right join test_case - on test_case.id = tci.ref_id - join issues - on tci.issues_id = issues.id - where tptc.plan_id = #{planId} - and test_case.status != 'Trash' - union distinct - select distinct tci.issues_id - from test_plan_test_case tptc - join test_case_issues tci on tptc.id = tci.resource_id - join issues - on tci.issues_id = issues.id - where tptc.plan_id = #{planId} + join issues on tci.issues_id = issues.id + where tptc.plan_id = #{planId} and tptc.is_del != 1