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