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
a6fd3255
Commit
a6fd3255
authored
Apr 12, 2017
by
zhouqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wechat-pay
parent
ac92cb80
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
UserExtInfo.java
src/main/java/cn/quantgroup/xyqb/entity/UserExtInfo.java
+4
-4
UserExtInfoRet.java
src/main/java/cn/quantgroup/xyqb/model/UserExtInfoRet.java
+8
-4
No files found.
src/main/java/cn/quantgroup/xyqb/entity/UserExtInfo.java
View file @
a6fd3255
...
...
@@ -31,13 +31,13 @@ public class UserExtInfo implements Serializable {
@Column
(
name
=
"education"
)
private
EducationEnum
educationEnum
=
EducationEnum
.
UNKNOWN
;
@Column
(
name
=
"has_car"
)
private
b
oolean
hasCar
=
false
;
private
B
oolean
hasCar
=
false
;
@Column
(
name
=
"has_social_security"
)
private
b
oolean
hasSocialSecurity
=
false
;
private
B
oolean
hasSocialSecurity
=
false
;
@Column
(
name
=
"has_house"
)
private
b
oolean
hasHouse
=
false
;
private
B
oolean
hasHouse
=
false
;
@Column
(
name
=
"has_credit_card"
)
private
b
oolean
hasCreditCard
=
false
;
private
B
oolean
hasCreditCard
=
false
;
@Column
(
name
=
"marry_status"
)
private
MaritalStatus
marryStatus
=
MaritalStatus
.
UNKNOWN
;
@Column
(
name
=
"created_at"
)
...
...
src/main/java/cn/quantgroup/xyqb/model/UserExtInfoRet.java
View file @
a6fd3255
...
...
@@ -27,6 +27,10 @@ public class UserExtInfoRet {
private
Long
createdAt
;
private
Long
updateAt
;
private
static
boolean
defaultBoolean
(
Boolean
k
)
{
return
k
==
null
?
false
:
k
;
}
public
static
UserExtInfoRet
getUserExtInfoRet
(
UserExtInfo
extInfo
)
{
if
(
extInfo
==
null
)
{
return
null
;
...
...
@@ -38,10 +42,10 @@ public class UserExtInfoRet {
ret
.
setIncomeRangeEnum
(
extInfo
.
getIncomeRangeEnum
());
ret
.
setOccupationEnum
(
extInfo
.
getOccupationEnum
());
ret
.
setEducationEnum
(
extInfo
.
getEducationEnum
());
ret
.
setHasCar
(
extInfo
.
isHasCar
(
));
ret
.
setHasSocialSecurity
(
extInfo
.
isHasSocialSecurity
(
));
ret
.
setHasHouse
(
extInfo
.
isHasHouse
(
));
ret
.
setHasCreditCard
(
extInfo
.
isHasCreditCard
(
));
ret
.
setHasCar
(
defaultBoolean
(
extInfo
.
getHasCar
()
));
ret
.
setHasSocialSecurity
(
defaultBoolean
(
extInfo
.
getHasSocialSecurity
()
));
ret
.
setHasHouse
(
defaultBoolean
(
extInfo
.
getHasHouse
()
));
ret
.
setHasCreditCard
(
defaultBoolean
(
extInfo
.
getHasCreditCard
()
));
ret
.
setMarryStatus
(
extInfo
.
getMarryStatus
());
ret
.
setCreatedAt
(
extInfo
.
getCreatedAt
().
getTime
());
ret
.
setUpdateAt
(
extInfo
.
getUpdateAt
().
getTime
());
...
...
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