Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
head_group
xyqb-user2
Commits
15d2f3ec
Commit
15d2f3ec
authored
Jul 27, 2018
by
greyby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不能返回空,抛异常
parent
6c5ea055
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
UserDetailServiceImpl.java
...ntgroup/xyqb/service/user/impl/UserDetailServiceImpl.java
+4
-6
No files found.
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserDetailServiceImpl.java
View file @
15d2f3ec
...
@@ -127,20 +127,18 @@ public class UserDetailServiceImpl implements IUserDetailService {
...
@@ -127,20 +127,18 @@ public class UserDetailServiceImpl implements IUserDetailService {
list
.
add
(
criteriaBuilder
.
equal
(
root
.
get
(
Constants
.
PHONE_NO
).
as
(
String
.
class
),
phoneNo
));
list
.
add
(
criteriaBuilder
.
equal
(
root
.
get
(
Constants
.
PHONE_NO
).
as
(
String
.
class
),
phoneNo
));
}
else
if
(
StringUtils
.
isNotBlank
(
phoneNo
))
{
}
else
if
(
StringUtils
.
isNotBlank
(
phoneNo
))
{
if
(
phoneNo
.
length
()
<
9
)
{
if
(
phoneNo
.
length
()
<
9
)
{
log
.
info
(
"哪个傻逼用这么少的数字查. phoneNo:{}"
,
phoneNo
);
log
.
error
(
"哪个傻逼用这么少的数字查. phoneNo:{}"
,
phoneNo
);
return
null
;
throw
new
RuntimeException
(
"not_allowed"
)
;
}
}
list
.
add
(
criteriaBuilder
.
like
(
root
.
get
(
Constants
.
PHONE_NO
).
as
(
String
.
class
),
phoneNo
.
concat
(
"%"
)));
}
}
if
(
StringUtils
.
isNotBlank
(
idNo
))
{
if
(
StringUtils
.
isNotBlank
(
idNo
))
{
if
(
Objects
.
equals
(
Constants
.
IDNO_LENGTH
,
idNo
.
length
())){
if
(
Objects
.
equals
(
Constants
.
IDNO_LENGTH
,
idNo
.
length
())){
list
.
add
(
criteriaBuilder
.
equal
(
root
.
get
(
"idNo"
).
as
(
String
.
class
),
idNo
));
list
.
add
(
criteriaBuilder
.
equal
(
root
.
get
(
"idNo"
).
as
(
String
.
class
),
idNo
));
}
else
{
}
else
{
if
(
idNo
.
length
()
<
16
)
{
if
(
idNo
.
length
()
<
16
)
{
log
.
info
(
"哪个傻逼用这么少的数字查. idNo:{}"
,
idNo
);
log
.
error
(
"哪个傻逼用这么少的数字查. idNo:{}"
,
idNo
);
return
null
;
throw
new
RuntimeException
(
"not_allowed"
)
;
}
}
list
.
add
(
criteriaBuilder
.
like
(
root
.
get
(
"idNo"
).
as
(
String
.
class
),
idNo
.
concat
(
"%"
)));
}
}
}
}
if
(
StringUtils
.
isNotBlank
(
name
))
{
if
(
StringUtils
.
isNotBlank
(
name
))
{
...
...
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