diff --git a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml index 3e4696dfea..cb3bfdfde0 100644 --- a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml +++ b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml @@ -395,12 +395,26 @@ - and issues.id in ( + + + and issues.id + + + in + + + not in + + + in + + + (select resource_id from custom_field_issues where field_id = #{custom.id} and ${custom.value}) + + + and issues.id in ( select resource_id from custom_field_issues where field_id = #{custom.id} - - and ${custom.value} - and left(replace(unix_timestamp(trim(both '"' from `value`)), '.', ''), 13) @@ -420,7 +434,8 @@ - ) + ) +