Merge branch 'master' into lixuetao

This commit is contained in:
bupengxiang
2023-05-24 09:47:38 +08:00
2 changed files with 4 additions and 2 deletions
@@ -584,7 +584,9 @@ public class UserEOServiceImpl implements IUserEoService {
throw new AdcDaBaseException(""+(i+1)+""+"用户名不符合规则"); throw new AdcDaBaseException(""+(i+1)+""+"用户名不符合规则");
} }
if (StringUtils.isNotBlank(userImportVO.getEmail())) { if (StringUtils.isNotBlank(userImportVO.getEmail())) {
// if (!(userImportVO.getEmail().matches("^[\\w-.]+@[a-z\\d-]+(\\.[a-z\\d-]+)*\\.[a-z\\d]{2,6}$/i"))) { if (userImportVO.getEmail().length() > 50 ) {
throw new AdcDaBaseException(""+(i+1)+""+"邮箱长度不能超过50");
}
if (!(userImportVO.getEmail().matches("^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$"))) { if (!(userImportVO.getEmail().matches("^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$"))) {
throw new AdcDaBaseException(""+(i+1)+""+"邮箱不符合规则!"); throw new AdcDaBaseException(""+(i+1)+""+"邮箱不符合规则!");
} }
@@ -604,7 +606,7 @@ public class UserEOServiceImpl implements IUserEoService {
throw new AdcDaBaseException(""+(i+1)+""+s+"部门不存在"); throw new AdcDaBaseException(""+(i+1)+""+s+"部门不存在");
}else { }else {
userImportVO.setOrgId(StringUtils.isEmpty(userImportVO.getOrgId()) ? orgEO.getId() userImportVO.setOrgId(StringUtils.isEmpty(userImportVO.getOrgId()) ? orgEO.getId()
: "," + orgEO.getId()); :userImportVO.getOrgId() + "," + orgEO.getId());
} }
} }
} }