diff --git a/workstation/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml b/workstation/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml
index a24fe8027d..9b73a381be 100644
--- a/workstation/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml
+++ b/workstation/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml
@@ -115,30 +115,30 @@
and test_case.id ${custom.operator} (
- select resource_id from custom_field_test_case where field_id = #{custom.id}
-
-
- and ${custom.value}
-
-
- and left(replace(unix_timestamp(trim(both '"' from `value`)), '.', ''), 13)
-
-
-
-
-
- and text_value
-
-
-
-
-
- and trim(both '"' from value)
-
-
-
-
-
+ select resource_id from custom_field_test_case where field_id = #{custom.id}
+
+
+ and ${custom.value}
+
+
+ and left(replace(unix_timestamp(trim(both '"' from `value`)), '.', ''), 13)
+
+
+
+
+
+ and text_value
+
+
+
+
+
+ and trim(both '"' from value)
+
+
+
+
+
)
@@ -188,9 +188,9 @@
@@ -303,14 +303,16 @@
and test_case.id in (
- select resource_id from custom_field_test_case where concat('custom_single-',field_id) = #{key}
+ select resource_id from custom_field_test_case where concat('custom_single-',field_id) =
+ #{key}
and trim(both '"' from value) in
)
and test_case.id in (
- select resource_id from custom_field_test_case where concat('custom_multiple-',field_id) = #{key}
+ select resource_id from custom_field_test_case where concat('custom_multiple-',field_id) =
+ #{key}
and
JSON_CONTAINS(value, #{value})