调整预估IP range region数量的方法,region数量计算大于1才调用综合服务接口
This commit is contained in:
@@ -929,6 +929,13 @@ public class ConfigConvertUtil {
|
||||
}
|
||||
return dictMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 策略对象Obj list group估算ip range需要获取的region id数量
|
||||
* @param srcList
|
||||
* @param <T>
|
||||
* @return
|
||||
*/
|
||||
public static <T>List<Integer> calRangeIps(List<T> srcList ){
|
||||
List<Integer> regionIdsList=new ArrayList<>();
|
||||
int total=0;
|
||||
@@ -978,7 +985,8 @@ public class ConfigConvertUtil {
|
||||
return regionIdsList;
|
||||
}
|
||||
}
|
||||
if(total>0){
|
||||
//拆分IP数量大于1获取ID
|
||||
if(total>1){
|
||||
regionIdsList=ConfigServiceUtil.getId(3,total);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user