fix: 测试计划报告所有用例数量统计错误
This commit is contained in:
parent
4f6c3bcbbd
commit
430820ab58
|
@ -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>
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue