fix(测试跟踪): 评审率统计不准确

--bug=1007589 --user=lyh 【测试跟踪】首页-用例数量统计-评审率统计不准确
https://www.tapd.cn/55049933/s/1062385
This commit is contained in:
shiziyuan9527 2021-11-01 14:06:58 +08:00 committed by 刘瑞斌
parent e23ec17f13
commit 13fb6979de
1 changed files with 2 additions and 1 deletions

View File

@ -412,7 +412,8 @@
AND create_time BETWEEN #{firstDayTimestamp} AND #{lastDayTimestamp}
</select>
<select id="countStatus" resultType="io.metersphere.track.response.TrackCountResult">
SELECT review_status AS groupField,count(id) AS countNumber FROM test_case WHERE project_id = #{projectId} and test_case.status != 'Trash'
SELECT review_status AS groupField,count(id) AS countNumber FROM test_case
WHERE project_id = #{projectId} and (test_case.status != 'Trash' or test_case.status is null)
GROUP BY test_case.review_status
</select>