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
1721e3a3
Commit
1721e3a3
authored
Jan 09, 2018
by
技术部-任文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提供登录成功后用户详细信息
parent
7b1f5c4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
InnerController.java
...tgroup/xyqb/controller/external/user/InnerController.java
+7
-10
No files found.
src/main/java/cn/quantgroup/xyqb/controller/external/user/InnerController.java
View file @
1721e3a3
...
...
@@ -595,18 +595,15 @@ public class InnerController implements IBaseController {
}
/**
* 按照用户主键、账号或uuid查询用户
综合信息模型
* 按照用户主键、账号或uuid查询用户
详细信息
*
* @param id - 用户表主键
* @param phoneNo - 用户账号
* @param uuid - 用户全球唯一键(uuid)
* @return
综合信息模型
包含:
* @return
详细信息
包含:
* {
* 账号信息
* 个人信息
* 扩展信息
* 地址信息
* 联系人信息
* }
*/
@LogHttpCaller
...
...
@@ -620,14 +617,14 @@ public class InnerController implements IBaseController {
}
else
if
(
StringUtils
.
isNotBlank
(
uuid
))
{
user
=
userService
.
findByUuidWithCache
(
uuid
);
}
User
AssociationModel
bean
=
null
;
if
(!
Objects
.
isNull
(
user
))
{
bean
=
findUserAssociationModelByUser
(
user
);
User
Detail
userDetail
=
null
;
if
(!
Objects
.
isNull
(
user
)
&&
!
Objects
.
isNull
(
user
.
getId
())
&&
user
.
getId
()
>
0
)
{
userDetail
=
userDetailService
.
findByUserId
(
user
.
getId
()
);
}
if
(
Objects
.
isNull
(
bean
))
{
if
(
Objects
.
isNull
(
user
))
{
return
JsonResult
.
buildErrorStateResult
(
"用户不存在"
,
""
);
}
else
{
return
JsonResult
.
buildSuccessResult
(
""
,
bean
);
return
JsonResult
.
buildSuccessResult
(
""
,
new
UserInfo
(
user
,
userDetail
)
);
}
}
...
...
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