fix(测试跟踪): 【测试跟踪】提交缺陷到jira,缺陷内容包含多选类型的自定义字段,高级搜索,不属于该字段,筛选无效
【【测试跟踪】提交缺陷到jira,缺陷内容包含多选类型的自定义字段,高级搜索,不属于该字段,筛选无效】https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001016175
This commit is contained in:
parent
ee63f0d6b5
commit
87a5eef432
|
@ -302,8 +302,15 @@
|
|||
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'">
|
||||
<choose>
|
||||
<when test="custom.operator == 'in'">
|
||||
and JSON_CONTAINS(`value`, #{custom.value})
|
||||
</when>
|
||||
<otherwise>
|
||||
and NOT JSON_CONTAINS(`value`, #{custom.value})
|
||||
</otherwise>
|
||||
</choose>
|
||||
</when>
|
||||
<when test="custom.type == 'date' or custom.type == 'datetime'">
|
||||
and left(replace(unix_timestamp(trim(both '"' from `value`)), '.', ''), 13)
|
||||
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.condition">
|
||||
|
|
|
@ -112,8 +112,15 @@
|
|||
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'">
|
||||
<choose>
|
||||
<when test="custom.operator == 'in'">
|
||||
and JSON_CONTAINS(`value`, #{custom.value})
|
||||
</when>
|
||||
<otherwise>
|
||||
and NOT JSON_CONTAINS(`value`, #{custom.value})
|
||||
</otherwise>
|
||||
</choose>
|
||||
</when>
|
||||
<when test="custom.type == 'date' or custom.type == 'datetime'">
|
||||
and left(replace(unix_timestamp(trim(both '"' from `value`)), '.', ''), 13)
|
||||
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.condition">
|
||||
|
|
Loading…
Reference in New Issue