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