roleId
This commit is contained in:
parent
5731cfbea6
commit
d26070fbdf
@ -297,6 +297,9 @@ namespace VOL.Business.Services.School
|
||||
teacherEntity.CreateDate = DateTime.Now;
|
||||
teacherEntity.AppletPwd = "000000";
|
||||
|
||||
var roleId = UserContext.Current.RoleId;
|
||||
|
||||
|
||||
using (var transaction = _teacherRepository.DbContext.Database.BeginTransaction())
|
||||
{
|
||||
try
|
||||
@ -308,7 +311,7 @@ namespace VOL.Business.Services.School
|
||||
|
||||
var userEntity = new Sys_User()
|
||||
{
|
||||
Role_Id = 3,
|
||||
Role_Id = roleId == 2 ? 3 : 5,
|
||||
RoleName = "学校老师",
|
||||
PhoneNo = paramDto.TeacherPhoneNo,
|
||||
SchoolName = UserContext.Current.SchoolName,
|
||||
|
Loading…
x
Reference in New Issue
Block a user