Browse Source

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

西昌分支
dyy 2 months ago
parent
commit
e0de66767a
1 changed files with 10 additions and 2 deletions
  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 View File

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


Loading…
Cancel
Save