Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
c3ecb858
Commit
c3ecb858
authored
Sep 02, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消手机号重复验证
parent
5a804bfc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
performance/Performance.Services/UserService.cs
+5
-5
No files found.
performance/Performance.Services/UserService.cs
View file @
c3ecb858
...
@@ -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
(
"二次绩效管理员科室不能为空"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment