修复asn v4和v6串列问题

This commit is contained in:
duandongmei
2019-01-27 11:51:15 +06:00
parent e1d439655a
commit 1c642b281e

View File

@@ -214,8 +214,6 @@ public class ConfigDictUtils {
*/
public static List<Integer> getASNIPNum(Integer groupId ) {
List<Integer> ipNum=new ArrayList<>();
ipNum.add(0, 0);
ipNum.add(1, 0);
try {
if(!StringUtil.isEmpty(groupId)){
List<Object[]> list=asnGroupInfoDao.getASNIPNum(groupId);
@@ -236,6 +234,11 @@ public class ConfigDictUtils {
} catch (Exception e) {
e.printStackTrace();
}
if(ipNum.size() ==0){
ipNum.add(0, 0);
ipNum.add(1, 0);
}
return ipNum;
}
}