diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml index c6f50c53cb..f71ed1b103 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml @@ -293,11 +293,8 @@ and issues.id in ( select resource_id from custom_field_issues where field_id = #{custom.id} - - - and left(`value`, 1) = '[' - and find_in_set(#{item}, replace(replace(`value`, ']', ''), '[', '')) - + + and JSON_CONTAINS(`value`, #{custom.value}) and left(replace(unix_timestamp(trim(both '"' from `value`)), '.', ''), 13) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml index a2bb7dc970..5e147b6acc 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml @@ -111,7 +111,7 @@ and test_case.id in ( select resource_id from custom_field_test_case where field_id = #{custom.id} - + and JSON_CONTAINS(`value`, #{custom.value}) diff --git a/frontend/src/business/components/common/components/search/MsTableAdvSearchBar.vue b/frontend/src/business/components/common/components/search/MsTableAdvSearchBar.vue index 268ce4da21..9717e61c10 100644 --- a/frontend/src/business/components/common/components/search/MsTableAdvSearchBar.vue +++ b/frontend/src/business/components/common/components/search/MsTableAdvSearchBar.vue @@ -125,7 +125,7 @@ export default { condition['customs'] = []; } let value = component.value; - if (component.type === "multipleMember") { + if (component.type === "multipleMember" || component.type === "checkbox" || component.type === "multipleSelect") { try { value = JSON.stringify(component.value); } catch (e) {