协议IP配置增加导入功能

This commit is contained in:
zhangwei
2018-06-11 10:58:06 +08:00
parent 0852cfdef9
commit ed6e14150f
14 changed files with 986 additions and 25 deletions

View File

@@ -302,7 +302,8 @@ public class ImportExcel {
try {
if (valType == String.class){
String s = String.valueOf(val.toString());
if(StringUtils.endsWith(s, ".0")){
//0.0.0.0表示任意IP的含义
if(StringUtils.endsWith(s, ".0") && !s.equals("0.0.0.0")){
val = StringUtils.substringBefore(s, ".0");
}else{
val = String.valueOf(val.toString());