修复ASN v4和v6串列bug
This commit is contained in:
@@ -214,8 +214,6 @@ public class ConfigDictUtils {
|
|||||||
*/
|
*/
|
||||||
public static List<Integer> getASNIPNum(Integer groupId ) {
|
public static List<Integer> getASNIPNum(Integer groupId ) {
|
||||||
List<Integer> ipNum=new ArrayList<>();
|
List<Integer> ipNum=new ArrayList<>();
|
||||||
ipNum.add(0, 0);
|
|
||||||
ipNum.add(1, 0);
|
|
||||||
try {
|
try {
|
||||||
if(!StringUtil.isEmpty(groupId)){
|
if(!StringUtil.isEmpty(groupId)){
|
||||||
List<Object[]> list=asnGroupInfoDao.getASNIPNum(groupId);
|
List<Object[]> list=asnGroupInfoDao.getASNIPNum(groupId);
|
||||||
@@ -236,6 +234,10 @@ public class ConfigDictUtils {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
if(ipNum ==null || ipNum.size()==0){
|
||||||
|
ipNum.add(0, 0);
|
||||||
|
ipNum.add(1, 0);
|
||||||
|
}
|
||||||
return ipNum;
|
return ipNum;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user