取消手机号重复验证

parent 5a804bfc
...@@ -151,8 +151,8 @@ public UserResponse Insert(UserRequest request, int userid) ...@@ -151,8 +151,8 @@ public UserResponse Insert(UserRequest request, int userid)
var isAgainAdmin = new int[] { application.DirectorRole, application.NurseRole }.Contains(request.Role); var isAgainAdmin = new int[] { application.DirectorRole, application.NurseRole }.Contains(request.Role);
if (null != _userRepository.GetEntity(t => t.Login == request.Login && t.IsDelete == 1)) if (null != _userRepository.GetEntity(t => t.Login == request.Login && t.IsDelete == 1))
throw new PerformanceException("登录名重复"); throw new PerformanceException("登录名重复");
if (null != _userRepository.GetEntity(t => t.Mobile == request.Mobile && t.IsDelete == 1)) //if (null != _userRepository.GetEntity(t => t.Mobile == request.Mobile && t.IsDelete == 1))
throw new PerformanceException("手机号重复"); // throw new PerformanceException("手机号重复");
if (request.Role == 3 && string.IsNullOrEmpty(request.Department)) if (request.Role == 3 && string.IsNullOrEmpty(request.Department))
throw new PerformanceException("请选择科室"); throw new PerformanceException("请选择科室");
if (isAgainAdmin && request.HosIDArray.Length > 1) if (isAgainAdmin && request.HosIDArray.Length > 1)
...@@ -224,9 +224,9 @@ public UserResponse Update(UserRequest request, bool isAgainAdmin) ...@@ -224,9 +224,9 @@ public UserResponse Update(UserRequest request, bool isAgainAdmin)
if (null != vlist && vlist.Count() > 0) if (null != vlist && vlist.Count() > 0)
throw new PerformanceException("登录名重复"); throw new PerformanceException("登录名重复");
vlist = _userRepository.GetEntities(t => t.ID != user.ID && t.Mobile == request.Mobile && t.IsDelete == 1); //vlist = _userRepository.GetEntities(t => t.ID != user.ID && t.Mobile == request.Mobile && t.IsDelete == 1);
if (null != vlist && vlist.Count() > 0) //if (null != vlist && vlist.Count() > 0)
throw new PerformanceException("手机号重复"); // throw new PerformanceException("手机号重复");
if (isAgainAdmin && string.IsNullOrEmpty(request.Department)) if (isAgainAdmin && string.IsNullOrEmpty(request.Department))
throw new PerformanceException("二次绩效管理员科室不能为空"); throw new PerformanceException("二次绩效管理员科室不能为空");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment