add 根据数据中心查询虚拟机
parent
c3599c76d5
commit
d79f5dba2f
|
@ -316,13 +316,14 @@ public class CloudServerServiceImpl implements CloudServerService {
|
|||
paramMap.remove("dcId");
|
||||
// 查询相应云平台
|
||||
List<CloudVendor> cloudVendors = cloudVendorRepository.getByDcId(dcId);
|
||||
if (!CollectionUtils.isEmpty(cloudVendors)) {
|
||||
if (CollectionUtils.isEmpty(cloudVendors)) {
|
||||
return new GeneralResult<>(true, null, "查询成功");
|
||||
}
|
||||
String ids = cloudVendors.stream().map(CloudVendor::getId).map(item -> String.valueOf(item)).collect(Collectors.joining(","));
|
||||
paramMap.put("vendorId", ids);
|
||||
param.setSign(Sign.IN);
|
||||
}
|
||||
}
|
||||
}
|
||||
int total = 0;
|
||||
List<CloudServer> list = Lists.newArrayList();
|
||||
if (context.getCatalog().equals(Catalog.Tenant)) {
|
||||
|
|
Loading…
Reference in New Issue