[修改] 用户批量导入

This commit is contained in:
bupengxiang
2023-05-24 09:44:55 +08:00
parent 36c9516ec1
commit f9f7f5e141
2 changed files with 4 additions and 2 deletions
@@ -584,7 +584,9 @@ public class UserEOServiceImpl implements IUserEoService {
throw new AdcDaBaseException(""+(i+1)+""+"用户名不符合规则");
}
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_-]+)+$"))) {
throw new AdcDaBaseException(""+(i+1)+""+"邮箱不符合规则!");
}
@@ -604,7 +606,7 @@ public class UserEOServiceImpl implements IUserEoService {
throw new AdcDaBaseException(""+(i+1)+""+s+"部门不存在");
}else {
userImportVO.setOrgId(StringUtils.isEmpty(userImportVO.getOrgId()) ? orgEO.getId()
: "," + orgEO.getId());
:userImportVO.getOrgId() + "," + orgEO.getId());
}
}
}