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