From cf4287d690eebc125d70db2b6eec18846f49539f Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Mon, 16 Jan 2023 15:50:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=94=B9=E8=BF=9B=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E7=9A=84=E6=8E=A5=E5=8F=A3=E7=94=A8=E4=BE=8B=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1021930 --user=宋天阳 【接口测试】接口首页 - 接口用例数量统计 - 未通过用例数统计不对 https://www.tapd.cn/55049933/s/1327734 --- .../base/mapper/ext/ExtApiTestCaseMapper.xml | 44 +++++++++++-------- .../controller/home/ApiHomeController.java | 34 +++++++------- .../definition/components/ApiVariable.vue | 12 ++--- 3 files changed, 46 insertions(+), 44 deletions(-) diff --git a/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml b/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml index b58467bd6d..4110b20caf 100644 --- a/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml +++ b/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml @@ -467,19 +467,19 @@ - and (t1.status IS NULL or t1.status NOT IN ('SUCCESS','ERROR','FAKE_ERROR') ) + and (t3.status IS NULL or t3.status NOT IN ('SUCCESS','ERROR','FAKE_ERROR') ) - and t1.status = 'SUCCESS' + and t3.status = 'SUCCESS' - and t1.status = 'ERROR' + and t3.status = 'ERROR' - and t1.status = 'FAKE_ERROR' + and t3.status = 'FAKE_ERROR' - and t1.status IN ('SUCCESS','ERROR','FAKE_ERROR') + and t3.status IN ('SUCCESS','ERROR','FAKE_ERROR') @@ -1022,23 +1022,29 @@ from api_test_case where id = #{0} -