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
1c92003f
Commit
1c92003f
authored
Feb 13, 2017
by
zhouqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
marry status
parent
ce835bcf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
11 deletions
+42
-11
UserExtInfo.java
src/main/java/cn/quantgroup/xyqb/entity/UserExtInfo.java
+2
-5
MaritalStatus.java
...va/cn/quantgroup/xyqb/entity/enumerate/MaritalStatus.java
+37
-0
UserExtInfoRet.java
src/main/java/cn/quantgroup/xyqb/model/UserExtInfoRet.java
+3
-6
No files found.
src/main/java/cn/quantgroup/xyqb/entity/UserExtInfo.java
View file @
1c92003f
package
cn
.
quantgroup
.
xyqb
.
entity
;
import
cn.quantgroup.xyqb.entity.enumerate.EducationEnum
;
import
cn.quantgroup.xyqb.entity.enumerate.IncomeEnum
;
import
cn.quantgroup.xyqb.entity.enumerate.IncomeRangeEnum
;
import
cn.quantgroup.xyqb.entity.enumerate.OccupationEnum
;
import
cn.quantgroup.xyqb.entity.enumerate.*
;
import
lombok.Data
;
import
javax.persistence.Column
;
...
...
@@ -44,7 +41,7 @@ public class UserExtInfo implements Serializable {
@Column
(
name
=
"has_credit_card"
)
private
boolean
hasCreditCard
;
@Column
(
name
=
"marry_status"
)
private
boolean
marryStatus
;
private
MaritalStatus
marryStatus
;
@Column
(
name
=
"created_at"
)
private
Timestamp
createdAt
;
@Column
(
name
=
"updated_at"
)
...
...
src/main/java/cn/quantgroup/xyqb/entity/enumerate/MaritalStatus.java
0 → 100644
View file @
1c92003f
package
cn
.
quantgroup
.
xyqb
.
entity
.
enumerate
;
/**
* Created by sunnan on 2016-11-24.
*/
public
enum
MaritalStatus
{
UNKNOWN
(
"未知"
),
SINGLE
(
"未婚"
),
// 1
MARRIED
(
"已婚"
),
// 2
DIVORCED
(
"离异"
),
// 3
WINDOWED
(
"丧偶"
),
// 4
OTHER
(
"其他"
);
String
description
;
MaritalStatus
(
String
desc
)
{
description
=
desc
;
}
public
String
getDescription
()
{
return
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
@Override
public
String
toString
()
{
final
StringBuffer
sb
=
new
StringBuffer
(
"MaritalStatus{"
);
sb
.
append
(
"description='"
).
append
(
description
).
append
(
'\''
);
sb
.
append
(
'}'
);
return
sb
.
toString
();
}
}
src/main/java/cn/quantgroup/xyqb/model/UserExtInfoRet.java
View file @
1c92003f
package
cn
.
quantgroup
.
xyqb
.
model
;
import
cn.quantgroup.xyqb.entity.UserExtInfo
;
import
cn.quantgroup.xyqb.entity.enumerate.EducationEnum
;
import
cn.quantgroup.xyqb.entity.enumerate.IncomeEnum
;
import
cn.quantgroup.xyqb.entity.enumerate.IncomeRangeEnum
;
import
cn.quantgroup.xyqb.entity.enumerate.OccupationEnum
;
import
cn.quantgroup.xyqb.entity.enumerate.*
;
import
lombok.Data
;
import
java.sql.Timestamp
;
...
...
@@ -26,7 +23,7 @@ public class UserExtInfoRet {
private
boolean
hasSocialSecurity
;
private
boolean
hasHouse
;
private
boolean
hasCreditCard
;
private
boolean
marryStatus
;
private
MaritalStatus
marryStatus
;
private
Long
createdAt
;
private
Long
updateAt
;
...
...
@@ -45,7 +42,7 @@ public class UserExtInfoRet {
ret
.
setHasSocialSecurity
(
extInfo
.
isHasSocialSecurity
());
ret
.
setHasHouse
(
extInfo
.
isHasHouse
());
ret
.
setHasCreditCard
(
extInfo
.
isHasCreditCard
());
ret
.
setMarryStatus
(
extInfo
.
is
MarryStatus
());
ret
.
setMarryStatus
(
extInfo
.
get
MarryStatus
());
ret
.
setCreatedAt
(
extInfo
.
getCreatedAt
().
getTime
());
ret
.
setUpdateAt
(
extInfo
.
getUpdateAt
().
getTime
());
return
ret
;
...
...
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