Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
customer-service
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
QG
customer-service
Commits
c2fdfd02
Commit
c2fdfd02
authored
Jul 15, 2020
by
xiaozhe.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户查询
parent
29c2320d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
UserServiceImpl.java
.../cn/quantgroup/customer/service/impl/UserServiceImpl.java
+14
-0
No files found.
src/main/java/cn/quantgroup/customer/service/impl/UserServiceImpl.java
View file @
c2fdfd02
...
...
@@ -178,6 +178,19 @@ public class UserServiceImpl implements IUserService {
log
.
info
(
"{} 通过phoneNo查询 phoneNo={}"
,
LOG_PRE
,
userQueryParam
.
getPhoneNo
());
UserSysResult
<
XUser
>
userByPhoneNo
=
userSdk
.
getService
().
findUserByPhoneNo
(
userQueryParam
.
getPhoneNo
());
UserSysResult
<
XUserDetail
>
userDetailByPhone
=
userSdk
.
getService
().
findUserDetailByPhone
(
userQueryParam
.
getPhoneNo
());
//根据传入的身份证和查询出的用户信息中身份证进行比较,如果不一致返回查询失败
if
(
StringUtils
.
isNotEmpty
(
userQueryParam
.
getIdNo
())
&&
userDetailByPhone
.
getData
()
!=
null
)
{
XUserDetail
xUserDetail
=
userDetailByPhone
.
getData
();
String
idNo
=
xUserDetail
.
getIdNo
();
if
(
StringUtils
.
isNotEmpty
(
idNo
))
{
idNo
=
idNo
.
trim
().
toUpperCase
();
}
String
paramIdNo
=
userQueryParam
.
getIdNo
().
trim
().
toUpperCase
();
if
(!
paramIdNo
.
equals
(
idNo
))
{
return
JsonResult
.
buildErrorStateResult
(
"无有效查询参数"
,
null
);
}
}
return
getUserBasicInfoResult
(
userByPhoneNo
,
userDetailByPhone
);
}
...
...
@@ -203,6 +216,7 @@ public class UserServiceImpl implements IUserService {
if
(
StringUtils
.
isNotBlank
(
userQueryParam
.
getIdNo
()))
{
//通过业务系统获得
log
.
info
(
"{} 通过phoneNo查询 idNo={}"
,
LOG_PRE
,
userQueryParam
.
getIdNo
());
return
findUserDetailByIdNo
(
userQueryParam
.
getIdNo
());
}
...
...
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