[修改] 用户导入

This commit is contained in:
bupengxiang
2023-05-24 11:07:03 +08:00
parent f9f7f5e141
commit d8d785652b
@@ -599,6 +599,7 @@ public class UserEOServiceImpl implements IUserEoService {
}
}
if (StringUtils.isNotEmpty(userImportVO.getOrgName())) {
userImportVO.setOrgName(userImportVO.getOrgName().replace("", ","));
String[] split = userImportVO.getOrgName().split(",");
for (String s : split) {
OrgEO orgEO = orgEOMap.get(s);
@@ -616,6 +617,9 @@ public class UserEOServiceImpl implements IUserEoService {
// if (StringUtils.isEmpty(userImportVO.getIsUse())) {
// throw new AdcDaBaseException("第"+(i+1)+"行"+"是否启用不能为空");
// }
if (StringUtils.isEmpty(userImportVO.getRoleName())){
throw new AdcDaBaseException(""+(i+1)+""+"角色:不能为空");
}
if (!roleEOMap.keySet().contains(userImportVO.getRoleName())) {
throw new AdcDaBaseException(""+(i+1)+""+"角色:" + userImportVO.getRoleName() + "不存在,请检查");
}