fix(测试跟踪):测试跟踪-首页-关联用例数量统计-去重处理

--bug=1025672 --user=王旭 【测试跟踪】测试跟踪-首页-关联用例数量统计-未做去重处理 https://www.tapd.cn/55049933/s/1365343
This commit is contained in:
WangXu10 2023-04-21 19:16:02 +08:00 committed by jianxing
parent ec6031c4df
commit efebac1430
1 changed files with 1 additions and 1 deletions

View File

@ -874,7 +874,7 @@
<select id="countRelevance" resultType="io.metersphere.dto.TrackCountResult">
SELECT test_case_test.test_type AS groupField,
count(test_case_test.test_case_id) AS countNumber
count(DISTINCT test_case_test.test_id ) AS countNumber
FROM test_case
INNER JOIN (SELECT test_case_id, test_id, test_type
FROM test_case_test