Bläddra i källkod

【修改】移动端修改手机号,同步修改学籍和教师;

西昌分支
dyy 2 månader sedan
förälder
incheckning
e0de66767a
1 ändrade filer med 10 tillägg och 2 borttagningar
  1. +10
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs

+ 10
- 2
Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs Visa fil

@@ -888,8 +888,16 @@ namespace Learun.Application.Organization
userEntity.F_Mobile = mobile;
userEntity.Modify(keyValue);
this.BaseRepository().Update(userEntity);
//修改学籍手机号
this.BaseRepository("CollegeMIS").ExecuteBySql($"update StuInfoBasic set mobile='{mobile}' where StuNo='{userEntity.F_Account}' ");
if (userEntity.F_Description == "学生")
{
//修改学籍手机号
this.BaseRepository("CollegeMIS").ExecuteBySql($"update StuInfoBasic set mobile='{mobile}' where StuNo='{userEntity.F_Account}' ");
}
else if (userEntity.F_Description == "教师")
{
//修改教师手机号
this.BaseRepository("CollegeMIS").ExecuteBySql($"update EmpInfo set mobile='{mobile}' where EmpNo='{userEntity.F_Account}' ");
}
}
}
catch (Exception ex)


Laddar…
Avbryt
Spara