fix(测试跟踪): 测试计划关联接口用例页面,显示了用例数为零的接口

--bug=1033138 --user=陈建星 【接口测试】github#27658,删除接口的用例后,在测试计划关联接口用例弹窗页仍可看到该接口 https://www.tapd.cn/55049933/s/1444814
This commit is contained in:
AgAngle 2023-12-18 15:29:58 +08:00 committed by 刘瑞斌
parent 28c81eae67
commit f0e7e49402
1 changed files with 9 additions and 9 deletions

View File

@ -597,19 +597,19 @@
</if>
</foreach>
</if>
<if test="!request.repeatCase">
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}
)
)
</if>
)
<include refid="queryVersionCondition">
<property name="versionTable" value="api_definition"/>
</include>