fix: 测试计划报告所有用例数量统计错误

This commit is contained in:
chenjianxing 2021-09-03 15:48:39 +08:00 committed by jianxing
parent 4f6c3bcbbd
commit 430820ab58
3 changed files with 3 additions and 3 deletions

View File

@ -265,7 +265,7 @@
<if test="status != null">
and t.status = 'error'
</if>
and c.status != 'Trash'
and (c.status != 'Trash' or c.status is null)
where t.test_plan_id = #{planId};
</select>

View File

@ -210,7 +210,7 @@
test_plan_api_scenario t
inner join
api_scenario c
on t.api_scenario_id = c.id and c.status != 'Trash'
on t.api_scenario_id = c.id and (c.status != 'Trash' or c.status is null)
and t.test_plan_id = #{planId}
<if test="status != null">
and t.last_result = 'Fail'

View File

@ -477,7 +477,7 @@
<if test="status != null">
and tptc.status = 'Failure'
</if>
and tc.status != 'Trash'
and (tc.status != 'Trash' or tc.status is null)
where tptc.plan_id = #{planId} order by tptc.update_time desc
</select>
<update id="updateTestCaseStates" parameterType="java.lang.String">