fix(测试跟踪): 自定义字段高级搜索结果有多条会报错

--bug=1018093 --user=陈建星 【测试跟踪】测试用例-高级搜索-筛选条件选模版字段-查询报sql错误 https://www.tapd.cn/55049933/s/1262502
This commit is contained in:
chenjianxing 2022-10-15 16:42:46 +08:00 committed by jianxing
parent ffd41ab80d
commit 8a6434afce
2 changed files with 2 additions and 2 deletions

View File

@ -309,7 +309,7 @@
</if>
<if test="${condition}.customs != null and ${condition}.customs.size() > 0">
<foreach collection="${condition}.customs" item="custom" separator="" open="" close="">
and issues.id ${custom.operator} (
and issues.id in (
select resource_id from custom_field_issues where field_id = #{custom.id}
<choose>
<when test="custom.type == 'multipleMember' or custom.type == 'checkbox' or custom.type == 'multipleSelect'">

View File

@ -108,7 +108,7 @@
</if>
<if test="${condition}.customs != null and ${condition}.customs.size() > 0">
<foreach collection="${condition}.customs" item="custom" separator="" open="" close="">
and test_case.id ${custom.operator} (
and test_case.id in (
select resource_id from custom_field_test_case where field_id = #{custom.id}
<choose>
<when test="custom.type == 'multipleMember' or custom.type == 'checkbox' or custom.type == 'multipleSelect'">