mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 20:19:16 +08:00
fix(测试跟踪): 自定义字段高级搜索结果有多条会报错
--bug=1018093 --user=陈建星 【测试跟踪】测试用例-高级搜索-筛选条件选模版字段-查询报sql错误 https://www.tapd.cn/55049933/s/1262502
This commit is contained in:
parent
ffd41ab80d
commit
8a6434afce
@ -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'">
|
||||
|
@ -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'">
|
||||
|
Loading…
Reference in New Issue
Block a user