fix(测试跟踪): 测试计划关联接口用例页面,显示了用例数为零的接口
--bug=1033138 --user=陈建星 【接口测试】github#27658,删除接口的用例后,在测试计划关联接口用例弹窗页仍可看到该接口 https://www.tapd.cn/55049933/s/1444814
This commit is contained in:
parent
28c81eae67
commit
f0e7e49402
|
@ -597,19 +597,19 @@
|
||||||
</if>
|
</if>
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<if test="!request.repeatCase">
|
and exists (
|
||||||
and exists (
|
|
||||||
select id
|
select id
|
||||||
from api_test_case c
|
from api_test_case c
|
||||||
where c.api_definition_id = api_definition.id
|
where c.api_definition_id = api_definition.id and c.status != 'Trash'
|
||||||
|
<if test="!request.repeatCase">
|
||||||
and not exists (
|
and not exists (
|
||||||
select id
|
select id
|
||||||
from test_plan_api_case t
|
from test_plan_api_case t
|
||||||
where t.api_case_id = c.id
|
where t.api_case_id = c.id
|
||||||
and t.test_plan_id = #{request.planId}
|
and t.test_plan_id = #{request.planId}
|
||||||
)
|
)
|
||||||
)
|
</if>
|
||||||
</if>
|
)
|
||||||
<include refid="queryVersionCondition">
|
<include refid="queryVersionCondition">
|
||||||
<property name="versionTable" value="api_definition"/>
|
<property name="versionTable" value="api_definition"/>
|
||||||
</include>
|
</include>
|
||||||
|
|
Loading…
Reference in New Issue