fix(接口测试): 修复通过用例覆盖跳转时接口查询中没有过滤掉回收站中用例的问题

--bug=1015150 --user=宋天阳
【接口测试】首页-接口、场景用例数量统计,已覆盖/未覆盖数量跳转后没有显示对应的接口
https://www.tapd.cn/55049933/s/1211159
This commit is contained in:
song-tianyang 2022-07-25 23:06:54 +08:00 committed by 建国
parent 8bd02d9422
commit 48d1c0b1c3
1 changed files with 12 additions and 8 deletions

View File

@ -802,7 +802,8 @@
<if test="request.apiCoverage == 'uncoverage'">
and
api_definition.id not in (SELECT api_definition_id FROM api_test_case)
api_definition.id not in (SELECT api_definition_id FROM api_test_case WHERE `status` is null or `status`
!= 'Trash')
<if test=" request.coverageIds != null and request.coverageIds.size() > 0">
and
api_definition.id not in
@ -815,7 +816,8 @@
<if test="request.apiCoverage == 'coverage' ">
and
(
api_definition.id in (SELECT api_definition_id FROM api_test_case)
api_definition.id in (SELECT api_definition_id FROM api_test_case WHERE `status` is null or `status` !=
'Trash')
<if test=" request.coverageIds != null and request.coverageIds.size() > 0">
or
api_definition.id in
@ -828,11 +830,11 @@
</if>
<if test="request.apiCaseCoverage == 'uncoverage' ">
and api_definition.id not in
(SELECT api_definition_id FROM api_test_case)
(SELECT api_definition_id FROM api_test_case WHERE `status` is null or `status` != 'Trash')
</if>
<if test="request.apiCaseCoverage == 'coverage' ">
and api_definition.id in
(SELECT api_definition_id FROM api_test_case)
(SELECT api_definition_id FROM api_test_case WHERE `status` is null or `status` != 'Trash')
</if>
<if test="request.scenarioCoverage == 'uncoverage' ">
<if test=" request.coverageIds != null and request.coverageIds.size() > 0">
@ -916,7 +918,8 @@
<include refid="filter"/>
<if test="request.apiCoverage == 'uncoverage' ">
and
api_definition.id not in (SELECT api_definition_id FROM api_test_case)
api_definition.id not in (SELECT api_definition_id FROM api_test_case WHERE `status` is null or `status`
!= 'Trash')
<if test=" request.coverageIds != null and request.coverageIds.size() > 0">
and
api_definition.id not in
@ -929,7 +932,8 @@
<if test="request.apiCoverage == 'coverage' ">
and
(
api_definition.id in (SELECT api_definition_id FROM api_test_case)
api_definition.id in (SELECT api_definition_id FROM api_test_case WHERE `status` is null or `status` !=
'Trash')
<if test=" request.coverageIds != null and request.coverageIds.size() > 0">
or
api_definition.id in
@ -942,11 +946,11 @@
</if>
<if test="request.apiCaseCoverage == 'uncoverage' ">
and api_definition.id not in
(SELECT api_definition_id FROM api_test_case)
(SELECT api_definition_id FROM api_test_case WHERE `status` is null or `status` != 'Trash')
</if>
<if test="request.apiCaseCoverage == 'coverage' ">
and api_definition.id in
(SELECT api_definition_id FROM api_test_case)
(SELECT api_definition_id FROM api_test_case WHERE `status` is null or `status` != 'Trash')
</if>
<if test="request.scenarioCoverage == 'uncoverage' ">
<if test=" request.coverageIds != null and request.coverageIds.size() > 0">