人员导入功能与模板字段不匹配
parent
fe6fb6ebaa
commit
2fbc231616
|
@ -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("公司邮件地址");
|
||||
|
|
Loading…
Reference in New Issue