This commit is contained in:
tanglong 2025-06-12 14:59:44 +08:00
parent 5731cfbea6
commit d26070fbdf

View File

@ -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,