fix(测试跟踪): 测试计划接口关联列表执行结果Pending筛选有误

--bug=1024961 --user=宋昌昌 【测试跟踪】测试计划-关联接口/场景用例-执行结果下拉选择Pending-搜索失败 https://www.tapd.cn/55049933/s/1357342
This commit is contained in:
song-cc-rock 2023-03-29 18:28:47 +08:00 committed by 建国
parent d16a80cef7
commit ac359c8c1b
1 changed files with 7 additions and 1 deletions

View File

@ -150,10 +150,16 @@
and a.version_id in and a.version_id in
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.filterInWrapper"/> <include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.filterInWrapper"/>
</when> </when>
<when test="key == 'exec_result'"> <when test="key == 'exec_result' and !values.contains('PENDING')">
and t.status in and t.status in
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.filterInWrapper"/> <include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.filterInWrapper"/>
</when> </when>
<when test="key == 'exec_result' and values.contains('PENDING')">
and (t.status in
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.filterInWrapper"/>
or t.status is null
)
</when>
</choose> </choose>
</if> </if>
</foreach> </foreach>