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

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

View File

@ -244,12 +244,20 @@
#{value} #{value}
</foreach> </foreach>
</when> </when>
<when test="key == 'last_result'"> <when test="key == 'last_result' and !values.contains('PENDING')">
and c.last_result in and c.last_result in
<foreach collection="values" item="value" separator="," open="(" close=")"> <foreach collection="values" item="value" separator="," open="(" close=")">
#{value} #{value}
</foreach> </foreach>
</when> </when>
<when test="key == 'last_result' and values.contains('PENDING')">
and (c.last_result in
<foreach collection="values" item="value" separator="," open="(" close=")">
#{value}
</foreach>
or c.last_result is null or c.last_result = ''
)
</when>
<when test="key == 'version_id'"> <when test="key == 'version_id'">
and c.version_id in and c.version_id in
<foreach collection="values" item="value" separator="," open="(" close=")"> <foreach collection="values" item="value" separator="," open="(" close=")">