diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtCheckOwnerMapper.xml b/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtCheckOwnerMapper.xml index 5df5a7b82e..c77cb20464 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtCheckOwnerMapper.xml +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtCheckOwnerMapper.xml @@ -4,7 +4,7 @@ SELECT count(id) = ${ids.size()} FROM ${table} - WHERE organization_id = #{organizationId} + WHERE organization_id = #{organizationId} and (select 1 from organization where id = #{organizationId} and enable = TRUE) and id in #{id}