From e0de66767a6a766cd7fe64ba885682fb562a8d30 Mon Sep 17 00:00:00 2001 From: dyy <807692433@qq.com> Date: Wed, 25 Sep 2024 14:02:18 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E4=BF=AE=E6=94=B9=E6=89=8B=E6=9C=BA=E5=8F=B7?= =?UTF-8?q?=EF=BC=8C=E5=90=8C=E6=AD=A5=E4=BF=AE=E6=94=B9=E5=AD=A6=E7=B1=8D?= =?UTF-8?q?=E5=92=8C=E6=95=99=E5=B8=88=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../User/UserService.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs b/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs index 9b2f1ea15..f255420ed 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs @@ -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)