fix(接口测试): 修复部分情况下接口测试列表查询报错的问题
--bug=1015150 --user=宋天阳 【接口测试】首页-接口、场景用例数量统计,已覆盖/未覆盖数量跳转后没有显示对应的接口 https://www.tapd.cn/55049933/s/1211159
This commit is contained in:
parent
95da7d7bd3
commit
849821c801
|
@ -805,11 +805,11 @@
|
|||
api_definition.id not in (SELECT api_definition_id FROM api_test_case)
|
||||
<if test=" request.coverageIds != null and request.coverageIds.size() > 0">
|
||||
and
|
||||
api_definition.id not in (
|
||||
api_definition.id not in
|
||||
<foreach collection="request.coverageIds" item="nodeId" separator="," open="(" close=")">
|
||||
#{nodeId}
|
||||
</foreach>
|
||||
)
|
||||
|
||||
</if>
|
||||
</if>
|
||||
<if test="request.apiCoverage == 'coverage' ">
|
||||
|
@ -818,11 +818,11 @@
|
|||
api_definition.id in (SELECT api_definition_id FROM api_test_case)
|
||||
<if test=" request.coverageIds != null and request.coverageIds.size() > 0">
|
||||
or
|
||||
api_definition.id in (
|
||||
api_definition.id in
|
||||
<foreach collection="request.coverageIds" item="nodeId" separator="," open="(" close=")">
|
||||
#{nodeId}
|
||||
</foreach>
|
||||
)
|
||||
|
||||
</if>
|
||||
)
|
||||
</if>
|
||||
|
@ -836,20 +836,20 @@
|
|||
</if>
|
||||
<if test="request.scenarioCoverage == 'uncoverage' ">
|
||||
<if test=" request.coverageIds != null and request.coverageIds.size() > 0">
|
||||
and api_definition.id not in (
|
||||
and api_definition.id not in
|
||||
<foreach collection="request.coverageIds" item="nodeId" separator="," open="(" close=")">
|
||||
#{nodeId}
|
||||
</foreach>
|
||||
)
|
||||
|
||||
</if>
|
||||
</if>
|
||||
<if test="request.scenarioCoverage == 'coverage' ">
|
||||
<if test=" request.coverageIds != null and request.coverageIds.size() > 0">
|
||||
and api_definition.id in (
|
||||
and api_definition.id in
|
||||
<foreach collection="request.coverageIds" item="nodeId" separator="," open="(" close=")">
|
||||
#{nodeId}
|
||||
</foreach>
|
||||
)
|
||||
|
||||
</if>
|
||||
</if>
|
||||
<include refid="queryVersionCondition">
|
||||
|
@ -919,11 +919,11 @@
|
|||
api_definition.id not in (SELECT api_definition_id FROM api_test_case)
|
||||
<if test=" request.coverageIds != null and request.coverageIds.size() > 0">
|
||||
and
|
||||
api_definition.id not in (
|
||||
api_definition.id not in
|
||||
<foreach collection="request.coverageIds" item="nodeId" separator="," open="(" close=")">
|
||||
#{nodeId}
|
||||
</foreach>
|
||||
)
|
||||
|
||||
</if>
|
||||
</if>
|
||||
<if test="request.apiCoverage == 'coverage' ">
|
||||
|
@ -932,11 +932,11 @@
|
|||
api_definition.id in (SELECT api_definition_id FROM api_test_case)
|
||||
<if test=" request.coverageIds != null and request.coverageIds.size() > 0">
|
||||
or
|
||||
api_definition.id in (
|
||||
api_definition.id in
|
||||
<foreach collection="request.coverageIds" item="nodeId" separator="," open="(" close=")">
|
||||
#{nodeId}
|
||||
</foreach>
|
||||
)
|
||||
|
||||
</if>
|
||||
)
|
||||
</if>
|
||||
|
@ -950,20 +950,20 @@
|
|||
</if>
|
||||
<if test="request.scenarioCoverage == 'uncoverage' ">
|
||||
<if test=" request.coverageIds != null and request.coverageIds.size() > 0">
|
||||
and api_definition.id not in (
|
||||
and api_definition.id not in
|
||||
<foreach collection="request.coverageIds" item="nodeId" separator="," open="(" close=")">
|
||||
#{nodeId}
|
||||
</foreach>
|
||||
)
|
||||
|
||||
</if>
|
||||
</if>
|
||||
<if test="request.scenarioCoverage == 'coverage' ">
|
||||
<if test=" request.coverageIds != null and request.coverageIds.size() > 0">
|
||||
and api_definition.id in (
|
||||
and api_definition.id in
|
||||
<foreach collection="request.coverageIds" item="nodeId" separator="," open="(" close=")">
|
||||
#{nodeId}
|
||||
</foreach>
|
||||
)
|
||||
|
||||
</if>
|
||||
</if>
|
||||
<include refid="queryVersionCondition">
|
||||
|
|
Loading…
Reference in New Issue