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>
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="!request.repeatCase">
|
||||
and exists (
|
||||
and exists (
|
||||
select id
|
||||
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 (
|
||||
select id
|
||||
from test_plan_api_case t
|
||||
where t.api_case_id = c.id
|
||||
and t.test_plan_id = #{request.planId}
|
||||
select id
|
||||
from test_plan_api_case t
|
||||
where t.api_case_id = c.id
|
||||
and t.test_plan_id = #{request.planId}
|
||||
)
|
||||
)
|
||||
</if>
|
||||
</if>
|
||||
)
|
||||
<include refid="queryVersionCondition">
|
||||
<property name="versionTable" value="api_definition"/>
|
||||
</include>
|
||||
|
|
Loading…
Reference in New Issue