From 963e9a816217dc9bc5604a101f74983757d04a3e Mon Sep 17 00:00:00 2001 From: pfl <14579250+shadowman1@user.noreply.gitee.com> Date: Wed, 25 Jun 2025 18:12:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E8=BF=9B=E5=BA=A6=E6=98=BE=E7=A4=BAsql=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/mapper/test/TestPlanMapper.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test-test/src/main/resources/mapper/test/TestPlanMapper.xml b/test-test/src/main/resources/mapper/test/TestPlanMapper.xml index ba252cf..c4425b9 100644 --- a/test-test/src/main/resources/mapper/test/TestPlanMapper.xml +++ b/test-test/src/main/resources/mapper/test/TestPlanMapper.xml @@ -149,19 +149,23 @@ (SELECT COUNT(1) FROM test_plan_case tpc WHERE tpc.plan_id = tp.id AND tpc.del_flag = '0' - AND tpc.type = '1') AS functionTestPassNum, + AND tpc.type = '1' + AND tpc.execute_result = '1') AS functionTestPassNum, (SELECT COUNT(1) FROM test_plan_case tpc WHERE tpc.plan_id = tp.id AND tpc.del_flag = '0' - AND tpc.type = '2') AS regressionTestPassNum, + AND tpc.type = '2' + AND tpc.execute_result = '1') AS regressionTestPassNum, (SELECT COUNT(1) FROM test_plan_case tpc WHERE tpc.plan_id = tp.id AND tpc.del_flag = '0' - AND tpc.type = '3') AS preProductionTestPassNum, + AND tpc.type = '3' + AND tpc.execute_result = '1') AS preProductionTestPassNum, (SELECT COUNT(1) FROM test_plan_case tpc WHERE tpc.plan_id = tp.id AND tpc.del_flag = '0' - AND tpc.type = '4') AS productionTestPassNum, + AND tpc.type = '4' + AND tpc.execute_result = '1') AS productionTestPassNum, tp.version, ( SELECT COUNT(1) FROM test_plan_defect tpd