This commit is contained in:
parent
969caabdbc
commit
a43a77a180
|
|
@ -212,7 +212,10 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
|||
string roleId = user.RoleId.Split(',')[0];
|
||||
var role = RoleService.GetRoleByRoleId(roleId);
|
||||
var workPost = WorkPostService.GetWorkPostByName(role.RoleName);
|
||||
newPerson.WorkPostId = workPost.WorkPostId;
|
||||
if (workPost != null)
|
||||
{
|
||||
newPerson.WorkPostId = workPost.WorkPostId;
|
||||
}
|
||||
}
|
||||
BLL.PersonService.AddPerson(newPerson);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue