fix(测试跟踪): 修复测试计划统计时没有过滤掉已删除的功能用例问题

--bug=1031327 --user=宋天阳 【测试跟踪】测试计划-列表中的测试进度和通过率和报告详情结果不一致
https://www.tapd.cn/55049933/s/1426710
This commit is contained in:
song-tianyang 2023-10-16 17:50:47 +08:00 committed by 建国
parent 16f9b1eb3d
commit 4de8d2a389
1 changed files with 6 additions and 5 deletions

View File

@ -640,11 +640,12 @@
group by tcn.id;
</select>
<select id="getExecResultMapByPlanId" resultType="io.metersphere.dto.CountMapDTO">
select status as `key`, count(*) as `value`
from test_plan_test_case
where plan_id = #{planId}
and is_del = 0
group by status
select tptc.status as `key`, count(tptc.id) as `value`
from test_plan_test_case tptc
inner join test_case tc on tc.id = tptc.case_id
where tptc.plan_id = #{planId}
and tptc.is_del = 0
group by tptc.status
</select>
<select id="selectCaseId" resultType="java.lang.String">
select case_id