ip判断addr_type时,增加是否Number类型判断。避免其他业务名称重复,进入ip类型数字校验。

This commit is contained in:
段冬梅
2019-05-27 14:44:07 +08:00
parent b8eddb6bca
commit 9bca022806

View File

@@ -687,7 +687,7 @@ public class ConfigSourcesService extends BaseService {
String ipTypeName = "";
for (CommonSourceFieldCfg commonSourceFieldCfg : commonSourceFieldCfgList) {
if (commonSourceFieldCfg.getDstName().equals("addr_type")) {
if (commonSourceFieldCfg.getDstName().equals("addr_type") && commonSourceFieldCfg.getFieldType().equals("Number")) {
String dstVal = srcMap.get(commonSourceFieldCfg.getSrcName()).toString();
ipTypeName = commonSourceFieldCfg.getSrcName();
// regexp 特殊格式正则验证