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
2e2da97a
Commit
2e2da97a
authored
Jul 02, 2020
by
杨锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户扩展信息NPE处理。
parent
6c15a35b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
UserServiceImpl.java
...cn/quantgroup/xyqb/service/user/impl/UserServiceImpl.java
+15
-15
No files found.
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserServiceImpl.java
View file @
2e2da97a
...
@@ -382,11 +382,11 @@ public class UserServiceImpl implements IUserService, IBaseController {
...
@@ -382,11 +382,11 @@ public class UserServiceImpl implements IUserService, IBaseController {
userFullResp
.
setIncomeRange
(
userExtInfo
.
getIncomeRangeEnum
().
ordinal
());
userFullResp
.
setIncomeRange
(
userExtInfo
.
getIncomeRangeEnum
().
ordinal
());
userFullResp
.
setOccupation
(
userExtInfo
.
getOccupationEnum
().
ordinal
());
userFullResp
.
setOccupation
(
userExtInfo
.
getOccupationEnum
().
ordinal
());
userFullResp
.
setEducation
(
userExtInfo
.
getEducationEnum
().
ordinal
());
userFullResp
.
setEducation
(
userExtInfo
.
getEducationEnum
().
ordinal
());
userFullResp
.
setHasCar
(
userExtInfo
.
getHasCar
()
?
1
:
0
);
userFullResp
.
setHasCar
(
userExtInfo
.
getHasCar
()
==
null
?
0
:
userExtInfo
.
getHasCar
()
?
1
:
0
);
userFullResp
.
setHasSocialSecurity
(
userExtInfo
.
getHasSocialSecurity
()
?
1
:
0
);
userFullResp
.
setHasSocialSecurity
(
userExtInfo
.
getHasSocialSecurity
()
==
null
?
0
:
userExtInfo
.
getHasSocialSecurity
()
?
1
:
0
);
userFullResp
.
setHasHouse
(
userExtInfo
.
getHasHouse
()
?
1
:
0
);
userFullResp
.
setHasHouse
(
userExtInfo
.
getHasHouse
()
==
null
?
0
:
userExtInfo
.
getHasHouse
()
?
1
:
0
);
userFullResp
.
setHasCreditCard
(
userExtInfo
.
getHasCreditCard
()
?
1
:
0
);
userFullResp
.
setHasCreditCard
(
userExtInfo
.
getHasCreditCard
()
==
null
?
0
:
userExtInfo
.
getHasCreditCard
()
?
1
:
0
);
userFullResp
.
setMarryStatus
(
userExtInfo
.
getMarryStatus
()
.
ordinal
()
);
userFullResp
.
setMarryStatus
(
userExtInfo
.
getMarryStatus
()
!=
null
?
userExtInfo
.
getMarryStatus
().
ordinal
()
:
null
);
}
}
if
(
address
!=
null
)
{
if
(
address
!=
null
)
{
userFullResp
.
setProvinceCode
(
address
.
getProvinceCode
());
userFullResp
.
setProvinceCode
(
address
.
getProvinceCode
());
...
@@ -399,16 +399,16 @@ public class UserServiceImpl implements IUserService, IBaseController {
...
@@ -399,16 +399,16 @@ public class UserServiceImpl implements IUserService, IBaseController {
}
}
List
<
UserFullResp
.
Contact
>
contacts
=
Lists
.
newArrayList
();
List
<
UserFullResp
.
Contact
>
contacts
=
Lists
.
newArrayList
();
contactService
.
findByUserIdAndBizType
(
userId
,
BizType
.
CASH
,
true
)
contactService
.
findByUserIdAndBizType
(
userId
,
BizType
.
CASH
,
true
)
.
forEach
(
contact
->
{
.
forEach
(
contact
->
{
contacts
.
add
(
UserFullResp
.
Contact
.
builder
()
contacts
.
add
(
UserFullResp
.
Contact
.
builder
()
.
bizType
(
contact
.
getBizType
())
.
bizType
(
contact
.
getBizType
())
.
userId
(
userId
)
.
userId
(
userId
)
.
name
(
contact
.
getName
())
.
name
(
contact
.
getName
())
.
mobile
(
contact
.
getPhoneNo
())
.
mobile
(
contact
.
getPhoneNo
())
.
relation
(
contact
.
getRelation
()
.
relation
(
contact
.
getRelation
()
.
ordinal
())
.
ordinal
())
.
build
());
.
build
());
});
});
userFullResp
.
setContacts
(
contacts
);
userFullResp
.
setContacts
(
contacts
);
return
userFullResp
;
return
userFullResp
;
}
}
...
...
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