From 1b6fb9512365425aa85db0c74c3e8cf797fa3206 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Wed, 31 Jan 2024 17:29:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=BB=84=E7=BB=87=E6=88=96?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=A6=81=E7=94=A8=E5=90=8E=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E5=86=8D=E6=93=8D=E4=BD=9C=E9=87=8C=E9=9D=A2=E7=9A=84=E8=B5=84?= =?UTF-8?q?=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/system/mapper/ExtCheckOwnerMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}