From b24022e835718af592e0948915b1057e22740894 Mon Sep 17 00:00:00 2001 From: bayuzhen Date: Thu, 30 May 2024 15:56:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=A4=A7=E5=B1=8F=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E8=B5=84=E6=BA=90=E4=BD=BF=E7=94=A8=E6=83=85=E5=86=B5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/bocloud/ims/service/rpc/ImsRpcServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bocloud.ims.service/src/main/java/com/bocloud/ims/service/rpc/ImsRpcServiceImpl.java b/bocloud.ims.service/src/main/java/com/bocloud/ims/service/rpc/ImsRpcServiceImpl.java index 1044a8e..1ded508 100644 --- a/bocloud.ims.service/src/main/java/com/bocloud/ims/service/rpc/ImsRpcServiceImpl.java +++ b/bocloud.ims.service/src/main/java/com/bocloud/ims/service/rpc/ImsRpcServiceImpl.java @@ -75,7 +75,9 @@ public class ImsRpcServiceImpl implements ImsRpcService { @Override public List getServerAll(Set vendorIds) throws Exception { // 获取云平台 - List vendorList = cloudVendorRepositoryl.queryProxy().col(GenericEntity::getDeleted).eq(0).list(); + List vendorList = cloudVendorRepositoryl.queryProxy().col(GenericEntity::getDeleted).eq(0) + .col(CloudVendor::getId).in(vendorIds) + .list(); List servers = new ArrayList<>(); for (CloudVendor cloudVendor : vendorList) { List list = this.serverRepository.list(1, 100000, null, null, null, cloudVendor.getType(), null, null);