fix(测试跟踪): 【测试跟踪】提交缺陷到jira,缺陷内容包含多选类型的自定义字段,高级搜索,不属于该字段,筛选无效
【【测试跟踪】提交缺陷到jira,缺陷内容包含多选类型的自定义字段,高级搜索,不属于该字段,筛选无效】https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001016175
This commit is contained in:
parent
ee63f0d6b5
commit
87a5eef432
|
@ -302,7 +302,14 @@
|
|||
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'">
|
||||
and JSON_CONTAINS(`value`, #{custom.value})
|
||||
<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)
|
||||
|
|
|
@ -112,7 +112,14 @@
|
|||
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'">
|
||||
and JSON_CONTAINS(`value`, #{custom.value})
|
||||
<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)
|
||||
|
|
Loading…
Reference in New Issue