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
a882539e
Commit
a882539e
authored
Jul 21, 2017
by
Java—红包—徐 然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
f447a2d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
InnerController.java
...tgroup/xyqb/controller/external/user/InnerController.java
+14
-13
No files found.
src/main/java/cn/quantgroup/xyqb/controller/external/user/InnerController.java
View file @
a882539e
...
...
@@ -2,6 +2,7 @@ package cn.quantgroup.xyqb.controller.external.user;
import
cn.quantgroup.motan.bean.UserAssociationBean
;
import
cn.quantgroup.motan.retbean.XContact
;
import
cn.quantgroup.motan.retbean.XContactInfo
;
import
cn.quantgroup.xyqb.aspect.logcaller.LogHttpCaller
;
import
cn.quantgroup.xyqb.controller.IBaseController
;
import
cn.quantgroup.xyqb.entity.Address
;
...
...
@@ -229,12 +230,12 @@ public class InnerController implements IBaseController {
bean
.
setProvince
(
address
.
getProvince
());
}
if
(
null
!=
extInfo
)
{
bean
.
setEducationEnum
(
extInfo
.
getEducationEnum
());
bean
.
setOccupationEnum
(
extInfo
.
getOccupationEnum
());
bean
.
setMarryStatus
(
extInfo
.
getMarryStatus
());
bean
.
setEducationEnum
(
extInfo
.
getEducationEnum
()
.
getName
()
);
bean
.
setOccupationEnum
(
extInfo
.
getOccupationEnum
()
.
getName
()
);
bean
.
setMarryStatus
(
extInfo
.
getMarryStatus
()
.
getDescription
()
);
}
if
(
org
.
apache
.
commons
.
collections
.
CollectionUtils
.
isNotEmpty
(
contacts
))
{
List
<
XContact
>
userContacts
=
contacts2ContactRets
(
contacts
);
List
<
XContact
Info
>
userContacts
=
contacts2ContactRets
(
contacts
);
bean
.
setContractResults
(
userContacts
);
}
}
...
...
@@ -267,12 +268,12 @@ public class InnerController implements IBaseController {
bean
.
setProvince
(
address
.
getProvince
());
}
if
(
null
!=
extInfo
)
{
bean
.
setEducationEnum
(
extInfo
.
getEducationEnum
());
bean
.
setOccupationEnum
(
extInfo
.
getOccupationEnum
());
bean
.
setMarryStatus
(
extInfo
.
getMarryStatus
());
bean
.
setEducationEnum
(
extInfo
.
getEducationEnum
()
.
getName
()
);
bean
.
setOccupationEnum
(
extInfo
.
getOccupationEnum
()
.
getName
()
);
bean
.
setMarryStatus
(
extInfo
.
getMarryStatus
()
.
getDescription
()
);
}
if
(
org
.
apache
.
commons
.
collections
.
CollectionUtils
.
isNotEmpty
(
contacts
))
{
List
<
XContact
>
userContacts
=
contacts2ContactRets
(
contacts
);
List
<
XContact
Info
>
userContacts
=
contacts2ContactRets
(
contacts
);
bean
.
setContractResults
(
userContacts
);
}
}
...
...
@@ -796,24 +797,24 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
new
UserRet
(
user
));
}
public
static
XContact
contact2ContactRet
(
Contact
c
)
{
public
static
XContact
Info
contact2ContactRet
(
Contact
c
)
{
if
(
c
==
null
)
{
return
null
;
}
XContact
ret
=
new
XContact
();
XContact
Info
ret
=
new
XContactInfo
();
ret
.
setId
(
c
.
getId
());
ret
.
setUserId
(
c
.
getUserId
());
ret
.
setName
(
c
.
getName
());
ret
.
setPhoneNo
(
c
.
getPhoneNo
());
ret
.
setRelation
(
c
.
getRelation
());
ret
.
setRelation
(
c
.
getRelation
()
.
getDescription
()
);
return
ret
;
}
public
static
List
<
XContact
>
contacts2ContactRets
(
List
<
Contact
>
cs
)
{
public
static
List
<
XContact
Info
>
contacts2ContactRets
(
List
<
Contact
>
cs
)
{
if
(
org
.
apache
.
commons
.
collections
.
CollectionUtils
.
isEmpty
(
cs
))
{
return
Collections
.
emptyList
();
}
List
<
XContact
>
contactRets
=
new
ArrayList
<>();
List
<
XContact
Info
>
contactRets
=
new
ArrayList
<>();
for
(
Contact
c
:
cs
)
{
contactRets
.
add
(
contact2ContactRet
(
c
));
}
...
...
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