处理大屏展示资源使用情况问题

develop
bayuzhen 2024-05-30 15:56:28 +08:00
parent deef8d99f1
commit b24022e835
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,9 @@ public class ImsRpcServiceImpl implements ImsRpcService {
@Override
public List<Server> getServerAll(Set<Long> vendorIds) throws Exception {
// 获取云平台
List<CloudVendor> vendorList = cloudVendorRepositoryl.queryProxy().col(GenericEntity::getDeleted).eq(0).list();
List<CloudVendor> vendorList = cloudVendorRepositoryl.queryProxy().col(GenericEntity::getDeleted).eq(0)
.col(CloudVendor::getId).in(vendorIds)
.list();
List<Server> servers = new ArrayList<>();
for (CloudVendor cloudVendor : vendorList) {
List<Server> list = this.serverRepository.list(1, 100000, null, null, null, cloudVendor.getType(), null, null);