人员导入功能与模板字段不匹配

master
OathK1per 2022-03-04 16:20:24 +08:00
parent fe6fb6ebaa
commit 2fbc231616
1 changed files with 3 additions and 3 deletions

View File

@ -368,15 +368,15 @@ public class AccountService {
// throw new Exception("职位" + positionName.toString() + "不存在");
// }
Object sysRole = m.get("所属角色名称");
Object sysRole = m.get("角色名称");
if (sysRole == null || StrKit.isBlank(sysRole.toString())) {
throw new Exception("所属角色名称不能为空");
throw new Exception("角色名称不能为空");
}
SysRole role = sysRoleRepository.findByNameEqualsAndDeletedEquals(sysRole.toString(), 0);
if (null == role) {
throw new Exception("所属角色" + sysRole.toString() + "不存在");
throw new Exception("角色" + sysRole.toString() + "不存在");
}
Object companyEmail = m.get("公司邮件地址");