|
@@ -330,6 +330,13 @@ public class OwnCompanyRelController extends BaseController
|
|
|
if(CommonUtil.isEmpty(scyName)){
|
|
|
throw new Exception("企业名称不能为空");
|
|
|
}
|
|
|
+ String checkScyName = "^[\\u4E00-\\u9FFF0-9A-Z《》()]+$";
|
|
|
+ Pattern regeScyName = Pattern.compile(checkScyName);
|
|
|
+ Matcher matcherScyName = regeScyName.matcher(scyName);
|
|
|
+ boolean isMatScyName = matcherScyName.matches();
|
|
|
+ if(!isMatScyName){
|
|
|
+ throw new Exception("企业名称不能存在特殊字符");
|
|
|
+ }
|
|
|
//统一社会信用代码
|
|
|
String scySocialCode = CommonUtil.objToString(map.get("scySocialCode"));
|
|
|
if(CommonUtil.isEmpty(scySocialCode)){
|
|
@@ -350,7 +357,7 @@ public class OwnCompanyRelController extends BaseController
|
|
|
throw new Exception("联系人过长");
|
|
|
}
|
|
|
//联系人正则校验
|
|
|
- String checkNickName = "^([\\u4e00-\\u9fa5]+|[a-zA-Z0-9]+)$";
|
|
|
+ String checkNickName = "^[A-Za-z\\u4e00-\\u9fa5]+$";
|
|
|
Pattern regeNickName = Pattern.compile(checkNickName);
|
|
|
Matcher matcherNickName = regeNickName.matcher(scrContarct);
|
|
|
boolean isMatNickName = matcherNickName.matches();
|