|
@@ -780,12 +780,30 @@ public class OwnCompanyManageController extends BaseController
|
|
|
}
|
|
}
|
|
|
//所属行业
|
|
//所属行业
|
|
|
String scyIndustry = CommonUtil.objToString(map.get("scyIndustry"));
|
|
String scyIndustry = CommonUtil.objToString(map.get("scyIndustry"));
|
|
|
|
|
+ if(CommonUtil.isNotEmpty(scyIndustry)) {
|
|
|
|
|
+ String checkIndustry = "^[A-Za-z\\u4e00-\\u9fa5]+$";
|
|
|
|
|
+ Pattern regeIndustry = Pattern.compile(checkIndustry);
|
|
|
|
|
+ Matcher matcherIndustry = regeIndustry.matcher(scyIndustry);
|
|
|
|
|
+ boolean isMatIndustry = matcherIndustry.matches();
|
|
|
|
|
+ if (!isMatIndustry) {
|
|
|
|
|
+ throw new Exception("所属行业不能含有特殊字符");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
//企业规模
|
|
//企业规模
|
|
|
String scyScale = CommonUtil.objToString(map.get("scyScale"));
|
|
String scyScale = CommonUtil.objToString(map.get("scyScale"));
|
|
|
//机构性质
|
|
//机构性质
|
|
|
String scyOrganization = CommonUtil.objToString(map.get("scyOrganization"));
|
|
String scyOrganization = CommonUtil.objToString(map.get("scyOrganization"));
|
|
|
//客户经理
|
|
//客户经理
|
|
|
String scyManager = CommonUtil.objToString(map.get("scyManager"));
|
|
String scyManager = CommonUtil.objToString(map.get("scyManager"));
|
|
|
|
|
+ if(CommonUtil.isNotEmpty(scyManager)){
|
|
|
|
|
+ String checkManager = "^[A-Za-z\\u4e00-\\u9fa5]+$";
|
|
|
|
|
+ Pattern regeManager = Pattern.compile(checkManager);
|
|
|
|
|
+ Matcher matcherManager = regeManager.matcher(scyManager);
|
|
|
|
|
+ boolean isMatManager = matcherManager.matches();
|
|
|
|
|
+ if (!isMatManager) {
|
|
|
|
|
+ throw new Exception("客户经理不能含有特殊字符");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
//执行修改
|
|
//执行修改
|
|
|
SysCompany sysCompany = new SysCompany();
|
|
SysCompany sysCompany = new SysCompany();
|
|
|
//主键
|
|
//主键
|