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
e0af3c19
Commit
e0af3c19
authored
May 25, 2018
by
技术部-任文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
扩展用户全量信息查询接口,增加了扩展信息
parent
81981fa6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
147 additions
and
68 deletions
+147
-68
IncomeEnum.java
src/main/java/cn/quantgroup/user/enums/IncomeEnum.java
+4
-0
IncomeRangeEnum.java
src/main/java/cn/quantgroup/user/enums/IncomeRangeEnum.java
+3
-0
InnerController.java
...tgroup/xyqb/controller/external/user/InnerController.java
+32
-65
ApiResponse.java
src/main/java/cn/quantgroup/xyqb/model/ApiResponse.java
+84
-0
UserAssociationModel.java
...n/java/cn/quantgroup/xyqb/model/UserAssociationModel.java
+24
-3
No files found.
src/main/java/cn/quantgroup/user/enums/IncomeEnum.java
View file @
e0af3c19
...
@@ -8,7 +8,11 @@ public enum IncomeEnum {
...
@@ -8,7 +8,11 @@ public enum IncomeEnum {
CASH
(
"现金计算"
),
CASH
(
"现金计算"
),
PAY_CARD
(
"工资卡"
),
PAY_CARD
(
"工资卡"
),
CASH_AND_PAY_CARD
(
"混合"
);
CASH_AND_PAY_CARD
(
"混合"
);
private
String
desc
;
private
String
desc
;
public
String
getDesc
()
{
return
desc
;
}
IncomeEnum
(
String
desc
)
{
IncomeEnum
(
String
desc
)
{
this
.
desc
=
desc
;
this
.
desc
=
desc
;
...
...
src/main/java/cn/quantgroup/user/enums/IncomeRangeEnum.java
View file @
e0af3c19
...
@@ -15,6 +15,9 @@ public enum IncomeRangeEnum {
...
@@ -15,6 +15,9 @@ public enum IncomeRangeEnum {
ABOVE_20000
(
"大于20000元"
);
ABOVE_20000
(
"大于20000元"
);
private
String
desc
;
private
String
desc
;
public
String
getDesc
()
{
return
desc
;
}
IncomeRangeEnum
(
String
desc
)
{
IncomeRangeEnum
(
String
desc
)
{
this
.
desc
=
desc
;
this
.
desc
=
desc
;
...
...
src/main/java/cn/quantgroup/xyqb/controller/external/user/InnerController.java
View file @
e0af3c19
...
@@ -28,6 +28,9 @@ import com.google.common.base.MoreObjects;
...
@@ -28,6 +28,9 @@ import com.google.common.base.MoreObjects;
import
com.google.common.collect.ImmutableMap
;
import
com.google.common.collect.ImmutableMap
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Maps
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
io.swagger.annotations.ApiResponse
;
import
io.swagger.annotations.ApiResponses
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -102,7 +105,6 @@ public class InnerController implements IBaseController {
...
@@ -102,7 +105,6 @@ public class InnerController implements IBaseController {
};
};
@RequestMapping
(
"/user/search/phoneNo"
)
@RequestMapping
(
"/user/search/phoneNo"
)
public
JsonResult
findByPhoneNo
(
String
phoneNo
)
{
public
JsonResult
findByPhoneNo
(
String
phoneNo
)
{
User
user
=
userService
.
findByPhoneInDb
(
phoneNo
);
User
user
=
userService
.
findByPhoneInDb
(
phoneNo
);
if
(
user
==
null
)
{
if
(
user
==
null
)
{
...
@@ -114,7 +116,6 @@ public class InnerController implements IBaseController {
...
@@ -114,7 +116,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
""
,
userRet
);
return
JsonResult
.
buildSuccessResult
(
""
,
userRet
);
}
}
@RequestMapping
(
"/user/search/uuid"
)
@RequestMapping
(
"/user/search/uuid"
)
public
JsonResult
findByUuid
(
String
uuid
)
{
public
JsonResult
findByUuid
(
String
uuid
)
{
User
user
=
userService
.
findByUuidWithCache
(
uuid
);
User
user
=
userService
.
findByUuidWithCache
(
uuid
);
...
@@ -125,7 +126,6 @@ public class InnerController implements IBaseController {
...
@@ -125,7 +126,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
""
,
userRet
);
return
JsonResult
.
buildSuccessResult
(
""
,
userRet
);
}
}
@RequestMapping
(
"/userInfo/search/uuid"
)
@RequestMapping
(
"/userInfo/search/uuid"
)
public
JsonResult
findUserInfoByUuid
(
@RequestParam
(
value
=
"uuid"
)
String
uuid
)
{
public
JsonResult
findUserInfoByUuid
(
@RequestParam
(
value
=
"uuid"
)
String
uuid
)
{
log
.
info
(
"需要查询的用户uuidid, uuid:"
+
uuid
);
log
.
info
(
"需要查询的用户uuidid, uuid:"
+
uuid
);
...
@@ -145,7 +145,6 @@ public class InnerController implements IBaseController {
...
@@ -145,7 +145,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
""
,
null
);
return
JsonResult
.
buildSuccessResult
(
""
,
null
);
}
}
@RequestMapping
(
"/userInfo/search/phone"
)
@RequestMapping
(
"/userInfo/search/phone"
)
public
JsonResult
findUserInfoByPhone
(
@RequestParam
(
value
=
"phone"
)
String
phone
)
{
public
JsonResult
findUserInfoByPhone
(
@RequestParam
(
value
=
"phone"
)
String
phone
)
{
log
.
info
(
"需要查询的用户phone, phone:"
+
phone
);
log
.
info
(
"需要查询的用户phone, phone:"
+
phone
);
...
@@ -165,7 +164,6 @@ public class InnerController implements IBaseController {
...
@@ -165,7 +164,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
""
,
null
);
return
JsonResult
.
buildSuccessResult
(
""
,
null
);
}
}
@RequestMapping
(
"/user/getPhoneByUserIds"
)
@RequestMapping
(
"/user/getPhoneByUserIds"
)
public
JsonResult
findByIds
(
@RequestParam
(
value
=
"userIds"
)
String
userIdsString
)
{
public
JsonResult
findByIds
(
@RequestParam
(
value
=
"userIds"
)
String
userIdsString
)
{
log
.
info
(
"批量查询用户的手机号列表, userIdsString:"
+
userIdsString
);
log
.
info
(
"批量查询用户的手机号列表, userIdsString:"
+
userIdsString
);
...
@@ -182,7 +180,6 @@ public class InnerController implements IBaseController {
...
@@ -182,7 +180,6 @@ public class InnerController implements IBaseController {
}
}
}
}
@RequestMapping
(
"/user/save"
)
@RequestMapping
(
"/user/save"
)
public
JsonResult
saveUser
(
public
JsonResult
saveUser
(
String
phoneNo
,
Long
registeredFrom
,
Long
createdAt
,
Long
updatedAt
,
String
phoneNo
,
Long
registeredFrom
,
Long
createdAt
,
Long
updatedAt
,
...
@@ -234,7 +231,6 @@ public class InnerController implements IBaseController {
...
@@ -234,7 +231,6 @@ public class InnerController implements IBaseController {
* 保存用户详细信息
* 保存用户详细信息
* 适用于:创建 或 修改
* 适用于:创建 或 修改
*/
*/
@RequestMapping
(
"/user_detail/save"
)
@RequestMapping
(
"/user_detail/save"
)
public
JsonResult
saveUserDetail
(
Long
userId
,
String
phoneNo
,
String
name
,
String
idNo
,
public
JsonResult
saveUserDetail
(
Long
userId
,
String
phoneNo
,
String
name
,
String
idNo
,
String
email
,
String
qq
)
{
String
email
,
String
qq
)
{
...
@@ -305,7 +301,6 @@ public class InnerController implements IBaseController {
...
@@ -305,7 +301,6 @@ public class InnerController implements IBaseController {
/**
/**
* 根据用户id查询用户的详细信息
* 根据用户id查询用户的详细信息
*/
*/
@RequestMapping
(
"/user_detail/search/userId"
)
@RequestMapping
(
"/user_detail/search/userId"
)
public
JsonResult
findUserDetailByUserId
(
Long
userId
)
{
public
JsonResult
findUserDetailByUserId
(
Long
userId
)
{
UserDetail
userDetail
=
null
;
UserDetail
userDetail
=
null
;
...
@@ -319,7 +314,6 @@ public class InnerController implements IBaseController {
...
@@ -319,7 +314,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
UserDetailRet
.
getUserDetail
(
userDetail
));
return
JsonResult
.
buildSuccessResult
(
null
,
UserDetailRet
.
getUserDetail
(
userDetail
));
}
}
@RequestMapping
(
"/user/search/userId"
)
@RequestMapping
(
"/user/search/userId"
)
public
JsonResult
findUserByUserId
(
Long
userId
)
{
public
JsonResult
findUserByUserId
(
Long
userId
)
{
User
user
=
userService
.
findById
(
userId
);
User
user
=
userService
.
findById
(
userId
);
...
@@ -329,7 +323,6 @@ public class InnerController implements IBaseController {
...
@@ -329,7 +323,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildErrorStateResult
(
""
,
null
);
return
JsonResult
.
buildErrorStateResult
(
""
,
null
);
}
}
@RequestMapping
(
"/user_detail/search/phone"
)
@RequestMapping
(
"/user_detail/search/phone"
)
public
JsonResult
findUserDetailByPhone
(
String
phoneNo
)
{
public
JsonResult
findUserDetailByPhone
(
String
phoneNo
)
{
UserDetail
userDetail
=
userDetailService
.
findByPhoneNo
(
phoneNo
);
UserDetail
userDetail
=
userDetailService
.
findByPhoneNo
(
phoneNo
);
...
@@ -345,7 +338,6 @@ public class InnerController implements IBaseController {
...
@@ -345,7 +338,6 @@ public class InnerController implements IBaseController {
* @param phoneNo
* @param phoneNo
* @return
* @return
*/
*/
@RequestMapping
(
"/user_full_info/search/phone"
)
@RequestMapping
(
"/user_full_info/search/phone"
)
public
JsonResult
findUserFullInfoByPhone
(
String
phoneNo
)
{
public
JsonResult
findUserFullInfoByPhone
(
String
phoneNo
)
{
if
(
StringUtils
.
isBlank
(
phoneNo
))
{
if
(
StringUtils
.
isBlank
(
phoneNo
))
{
...
@@ -366,7 +358,6 @@ public class InnerController implements IBaseController {
...
@@ -366,7 +358,6 @@ public class InnerController implements IBaseController {
* @param uuid
* @param uuid
* @return
* @return
*/
*/
@RequestMapping
(
"/user_full_info/search/uuid"
)
@RequestMapping
(
"/user_full_info/search/uuid"
)
public
JsonResult
findUserFullInfoByUUuid
(
String
uuid
)
{
public
JsonResult
findUserFullInfoByUUuid
(
String
uuid
)
{
if
(
StringUtils
.
isBlank
(
uuid
))
{
if
(
StringUtils
.
isBlank
(
uuid
))
{
...
@@ -389,7 +380,6 @@ public class InnerController implements IBaseController {
...
@@ -389,7 +380,6 @@ public class InnerController implements IBaseController {
* @param userId - 用户主键
* @param userId - 用户主键
* @return
* @return
*/
*/
@RequestMapping
(
"/user_detail/update"
)
@RequestMapping
(
"/user_detail/update"
)
public
JsonResult
updateUserDetail
(
String
qq
,
String
email
,
Long
userId
)
{
public
JsonResult
updateUserDetail
(
String
qq
,
String
email
,
Long
userId
)
{
if
(
Objects
.
isNull
(
userId
)
||
userId
==
0L
)
{
if
(
Objects
.
isNull
(
userId
)
||
userId
==
0L
)
{
...
@@ -404,7 +394,6 @@ public class InnerController implements IBaseController {
...
@@ -404,7 +394,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
null
);
return
JsonResult
.
buildSuccessResult
(
null
,
null
);
}
}
@RequestMapping
(
"/user_detail/update/qq"
)
@RequestMapping
(
"/user_detail/update/qq"
)
public
JsonResult
updateUserQQ
(
String
qq
,
Long
userId
)
{
public
JsonResult
updateUserQQ
(
String
qq
,
Long
userId
)
{
if
(
StringUtils
.
isEmpty
(
qq
)
||
userId
==
null
||
userId
==
0L
)
{
if
(
StringUtils
.
isEmpty
(
qq
)
||
userId
==
null
||
userId
==
0L
)
{
...
@@ -414,7 +403,6 @@ public class InnerController implements IBaseController {
...
@@ -414,7 +403,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
null
);
return
JsonResult
.
buildSuccessResult
(
null
,
null
);
}
}
@RequestMapping
(
"/contact/search/user_id"
)
@RequestMapping
(
"/contact/search/user_id"
)
public
JsonResult
findContactsByUserId
(
Long
userId
)
{
public
JsonResult
findContactsByUserId
(
Long
userId
)
{
if
(
null
==
userId
)
{
if
(
null
==
userId
)
{
...
@@ -427,7 +415,6 @@ public class InnerController implements IBaseController {
...
@@ -427,7 +415,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
ContactRet
.
contacts2ContactRets
(
contacts
));
return
JsonResult
.
buildSuccessResult
(
null
,
ContactRet
.
contacts2ContactRets
(
contacts
));
}
}
@RequestMapping
(
"/contact/save/contacts"
)
@RequestMapping
(
"/contact/save/contacts"
)
public
JsonResult
save2Contact
(
Long
userId
,
@RequestParam
(
value
=
"contacts"
)
String
contactsStr
)
{
public
JsonResult
save2Contact
(
Long
userId
,
@RequestParam
(
value
=
"contacts"
)
String
contactsStr
)
{
if
(
Objects
.
isNull
(
userId
)
||
StringUtils
.
isBlank
(
contactsStr
))
{
if
(
Objects
.
isNull
(
userId
)
||
StringUtils
.
isBlank
(
contactsStr
))
{
...
@@ -451,7 +438,6 @@ public class InnerController implements IBaseController {
...
@@ -451,7 +438,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
"保存成功"
,
ContactRet
.
contacts2ContactRets
(
result
));
return
JsonResult
.
buildSuccessResult
(
"保存成功"
,
ContactRet
.
contacts2ContactRets
(
result
));
}
}
@RequestMapping
(
"/contact/update/contact"
)
@RequestMapping
(
"/contact/update/contact"
)
public
JsonResult
updateContact
(
@RequestParam
Long
contactId
,
@RequestParam
(
required
=
false
)
String
name
,
public
JsonResult
updateContact
(
@RequestParam
Long
contactId
,
@RequestParam
(
required
=
false
)
String
name
,
@RequestParam
(
required
=
false
)
String
phoneNo
,
@RequestParam
(
required
=
false
)
String
phoneNo
,
...
@@ -485,7 +471,6 @@ public class InnerController implements IBaseController {
...
@@ -485,7 +471,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
"修改联系人成功"
,
contact
);
return
JsonResult
.
buildSuccessResult
(
"修改联系人成功"
,
contact
);
}
}
@RequestMapping
(
"/address/search/user_id"
)
@RequestMapping
(
"/address/search/user_id"
)
public
JsonResult
findAddressByUserId
(
Long
userId
)
{
public
JsonResult
findAddressByUserId
(
Long
userId
)
{
if
(
userId
==
null
)
{
if
(
userId
==
null
)
{
...
@@ -498,7 +483,6 @@ public class InnerController implements IBaseController {
...
@@ -498,7 +483,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
AddressRet
.
address2AddressRet
(
address
));
return
JsonResult
.
buildSuccessResult
(
null
,
AddressRet
.
address2AddressRet
(
address
));
}
}
@RequestMapping
(
"/address/save"
)
@RequestMapping
(
"/address/save"
)
public
JsonResult
saveAddress
(
public
JsonResult
saveAddress
(
Long
userId
,
Long
provinceCode
,
Long
cityCode
,
String
city
,
Long
userId
,
Long
provinceCode
,
Long
cityCode
,
String
city
,
...
@@ -532,7 +516,6 @@ public class InnerController implements IBaseController {
...
@@ -532,7 +516,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
AddressRet
.
address2AddressRet
(
addressObj
));
return
JsonResult
.
buildSuccessResult
(
null
,
AddressRet
.
address2AddressRet
(
addressObj
));
}
}
@RequestMapping
(
"/user_ext_info/update"
)
@RequestMapping
(
"/user_ext_info/update"
)
public
JsonResult
updateMarryStatus
(
public
JsonResult
updateMarryStatus
(
Long
userId
,
IncomeEnum
incomeEnum
,
IncomeRangeEnum
incomeRangeEnum
,
Long
userId
,
IncomeEnum
incomeEnum
,
IncomeRangeEnum
incomeRangeEnum
,
...
@@ -583,7 +566,6 @@ public class InnerController implements IBaseController {
...
@@ -583,7 +566,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
UserExtInfoRet
.
getUserExtInfoRet
(
info
));
return
JsonResult
.
buildSuccessResult
(
null
,
UserExtInfoRet
.
getUserExtInfoRet
(
info
));
}
}
@RequestMapping
(
"/user_detail/search_list"
)
@RequestMapping
(
"/user_detail/search_list"
)
public
JsonResult
searchUserDetailList
(
String
name
,
String
phoneNo
,
String
idNo
)
{
public
JsonResult
searchUserDetailList
(
String
name
,
String
phoneNo
,
String
idNo
)
{
...
@@ -615,7 +597,6 @@ public class InnerController implements IBaseController {
...
@@ -615,7 +597,6 @@ public class InnerController implements IBaseController {
return
JSON
.
parseObject
(
s
,
JsonResult
.
class
);
return
JSON
.
parseObject
(
s
,
JsonResult
.
class
);
}
}
@RequestMapping
(
"/user_ext_info/search/user_id"
)
@RequestMapping
(
"/user_ext_info/search/user_id"
)
public
JsonResult
searchUserExtInfoByUserId
(
Long
userId
)
{
public
JsonResult
searchUserExtInfoByUserId
(
Long
userId
)
{
if
(
userId
==
null
)
{
if
(
userId
==
null
)
{
...
@@ -628,7 +609,6 @@ public class InnerController implements IBaseController {
...
@@ -628,7 +609,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
UserExtInfoRet
.
getUserExtInfoRet
(
userExtInfo
));
return
JsonResult
.
buildSuccessResult
(
null
,
UserExtInfoRet
.
getUserExtInfoRet
(
userExtInfo
));
}
}
@RequestMapping
(
"/user/query/openId"
)
@RequestMapping
(
"/user/query/openId"
)
public
JsonResult
queryOpenIdByUserId
(
Long
userId
)
{
public
JsonResult
queryOpenIdByUserId
(
Long
userId
)
{
if
(
userId
==
null
)
{
if
(
userId
==
null
)
{
...
@@ -654,7 +634,6 @@ public class InnerController implements IBaseController {
...
@@ -654,7 +634,6 @@ public class InnerController implements IBaseController {
* 个人信息
* 个人信息
* }
* }
*/
*/
@RequestMapping
(
"/user-association/search"
)
@RequestMapping
(
"/user-association/search"
)
public
JsonResult
findUserAssociationModel
(
Long
id
,
String
phoneNo
,
String
uuid
)
{
public
JsonResult
findUserAssociationModel
(
Long
id
,
String
phoneNo
,
String
uuid
)
{
User
user
=
null
;
User
user
=
null
;
...
@@ -703,6 +682,7 @@ public class InnerController implements IBaseController {
...
@@ -703,6 +682,7 @@ public class InnerController implements IBaseController {
bean
.
setName
(
userDetail
.
getName
());
bean
.
setName
(
userDetail
.
getName
());
bean
.
setIdNo
(
userDetail
.
getIdNo
());
bean
.
setIdNo
(
userDetail
.
getIdNo
());
bean
.
setQq
(
userDetail
.
getQq
());
bean
.
setQq
(
userDetail
.
getQq
());
bean
.
setEmail
(
userDetail
.
getEmail
());
bean
.
setGender
(
Optional
.
ofNullable
(
userDetail
.
getGender
()).
orElse
(
Gender
.
UNKNOWN
).
getName
());
bean
.
setGender
(
Optional
.
ofNullable
(
userDetail
.
getGender
()).
orElse
(
Gender
.
UNKNOWN
).
getName
());
}
}
UserBtRegister
userBtRegister
=
userBtRegisterService
.
findByUserId
(
user
.
getId
());
UserBtRegister
userBtRegister
=
userBtRegisterService
.
findByUserId
(
user
.
getId
());
...
@@ -710,22 +690,25 @@ public class InnerController implements IBaseController {
...
@@ -710,22 +690,25 @@ public class InnerController implements IBaseController {
bean
.
setMerchantId
(
userBtRegister
.
getRegisterBtMerchantId
());
bean
.
setMerchantId
(
userBtRegister
.
getRegisterBtMerchantId
());
}
}
UserExtInfo
extInfo
=
userExtInfoService
.
findByUserId
(
user
.
getId
());
UserExtInfo
extInfo
=
userExtInfoService
.
findByUserId
(
user
.
getId
());
if
(!
Objects
.
isNull
(
extInfo
))
{
if
(
Objects
.
nonNull
(
extInfo
))
{
if
(
null
==
extInfo
.
getEducationEnum
())
{
// 婚姻状态
bean
.
setEducationEnum
(
cn
.
quantgroup
.
user
.
enums
.
EducationEnum
.
UNKNOWN
.
getName
());
bean
.
setMarryStatus
(
Optional
.
ofNullable
(
extInfo
.
getMarryStatus
()).
orElse
(
cn
.
quantgroup
.
user
.
enums
.
MaritalStatus
.
UNKNOWN
).
getDescription
());
}
else
{
// 受教育程度
bean
.
setEducationEnum
(
extInfo
.
getEducationEnum
().
getName
());
bean
.
setEducationEnum
(
Optional
.
ofNullable
(
extInfo
.
getEducationEnum
()).
orElse
(
cn
.
quantgroup
.
user
.
enums
.
EducationEnum
.
UNKNOWN
).
getName
());
}
// 职业
if
(
null
==
extInfo
.
getOccupationEnum
())
{
bean
.
setOccupationEnum
(
Optional
.
ofNullable
(
extInfo
.
getOccupationEnum
()).
orElse
(
cn
.
quantgroup
.
user
.
enums
.
OccupationEnum
.
UNKNOWN
).
getName
());
bean
.
setOccupationEnum
(
cn
.
quantgroup
.
user
.
enums
.
OccupationEnum
.
UNKNOWN
.
getName
());
// 收入水平范围
}
else
{
bean
.
setIncomeRangeEnum
(
Optional
.
ofNullable
(
extInfo
.
getIncomeRangeEnum
()).
orElse
(
cn
.
quantgroup
.
user
.
enums
.
IncomeRangeEnum
.
UNKNOWN
).
getDesc
());
bean
.
setOccupationEnum
(
extInfo
.
getOccupationEnum
().
getName
());
// 收入方式
}
bean
.
setIncomeEnum
(
Optional
.
ofNullable
(
extInfo
.
getIncomeEnum
()).
orElse
(
cn
.
quantgroup
.
user
.
enums
.
IncomeEnum
.
UNKNOWN
).
getDesc
());
if
(
null
==
extInfo
.
getMarryStatus
())
{
// 是否有车
bean
.
setMarryStatus
(
cn
.
quantgroup
.
user
.
enums
.
MaritalStatus
.
UNKNOWN
.
getDescription
());
bean
.
setHasCar
(
Optional
.
ofNullable
(
extInfo
.
getHasCar
()).
orElse
(
false
));
}
else
{
// 是否有社保
bean
.
setMarryStatus
(
extInfo
.
getMarryStatus
().
getDescription
());
bean
.
setHasSocialSecurity
(
Optional
.
ofNullable
(
extInfo
.
getHasSocialSecurity
()).
orElse
(
false
));
}
// 是否有房
bean
.
setHasHouse
(
Optional
.
ofNullable
(
extInfo
.
getHasHouse
()).
orElse
(
false
));
// 是否有信用卡
bean
.
setHasCreditCard
(
Optional
.
ofNullable
(
extInfo
.
getHasCreditCard
()).
orElse
(
false
));
}
}
Address
address
=
addressService
.
findByUserId
(
user
.
getId
());
Address
address
=
addressService
.
findByUserId
(
user
.
getId
());
if
(!
Objects
.
isNull
(
address
))
{
if
(!
Objects
.
isNull
(
address
))
{
...
@@ -738,9 +721,15 @@ public class InnerController implements IBaseController {
...
@@ -738,9 +721,15 @@ public class InnerController implements IBaseController {
return
bean
;
return
bean
;
}
}
@ApiResponses
({
@RequestMapping
(
"/user-association/search/userId"
)
@ApiResponse
(
code
=
200
,
message
=
"Nice!"
,
responseContainer
=
"UserAssociationModel = {Long id, String uuid, String phoneNo, String idNo, String name, String gender, String marryStatus, String educationEnum, String occupationEnum, String qq, Long registerFrom, Long merchantId, List<AddressModel> addressList, List<ContactModel> contactList}"
),
public
JsonResult
findUserAssociationModelByUserId
(
Long
userId
,
String
phoneNo
)
{
@ApiResponse
(
code
=
400
,
message
=
"Invalid params supplied"
,
response
=
cn
.
quantgroup
.
xyqb
.
model
.
ApiResponse
.
class
),
@ApiResponse
(
code
=
404
,
message
=
"User not found"
,
response
=
cn
.
quantgroup
.
xyqb
.
model
.
ApiResponse
.
class
)
})
@ApiOperation
(
notes
=
"用户全量信息查询接口"
,
value
=
"用户全量信息查询接口"
,
nickname
=
"findUserAssociationModel"
)
@RequestMapping
(
path
=
"/user-association/search/userId"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
public
JsonResult
findUserAssociationModelByUserId
(
@ApiParam
(
value
=
"用户ID"
,
required
=
false
)
@RequestParam
(
name
=
"userId"
,
required
=
false
)
Long
userId
,
@ApiParam
(
value
=
"用户注册手机号"
,
required
=
false
)
@RequestParam
(
name
=
"phoneNo"
,
required
=
false
)
String
phoneNo
)
{
boolean
userIdOk
=
Objects
.
nonNull
(
userId
)
&&
userId
>
0
;
boolean
userIdOk
=
Objects
.
nonNull
(
userId
)
&&
userId
>
0
;
boolean
phoneNoOk
=
ValidationUtil
.
validatePhoneNo
(
phoneNo
);
boolean
phoneNoOk
=
ValidationUtil
.
validatePhoneNo
(
phoneNo
);
if
(!
userIdOk
&&
!
phoneNoOk
)
{
if
(!
userIdOk
&&
!
phoneNoOk
)
{
...
@@ -754,7 +743,6 @@ public class InnerController implements IBaseController {
...
@@ -754,7 +743,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
""
,
bean
);
return
JsonResult
.
buildSuccessResult
(
""
,
bean
);
}
}
@RequestMapping
(
"/user-association/search/phone"
)
@RequestMapping
(
"/user-association/search/phone"
)
public
JsonResult
findUserAssociationByPhone
(
String
phoneNo
)
{
public
JsonResult
findUserAssociationByPhone
(
String
phoneNo
)
{
UserDetail
userDetail
=
userDetailService
.
findByPhoneNo
(
phoneNo
);
UserDetail
userDetail
=
userDetailService
.
findByPhoneNo
(
phoneNo
);
...
@@ -762,7 +750,6 @@ public class InnerController implements IBaseController {
...
@@ -762,7 +750,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
""
,
bean
);
return
JsonResult
.
buildSuccessResult
(
""
,
bean
);
}
}
@RequestMapping
(
"/user-association/search/uid"
)
@RequestMapping
(
"/user-association/search/uid"
)
public
JsonResult
findUserAssociationByUid
(
Long
uid
)
{
public
JsonResult
findUserAssociationByUid
(
Long
uid
)
{
UserDetail
userDetail
=
userDetailService
.
findByUserId
(
uid
);
UserDetail
userDetail
=
userDetailService
.
findByUserId
(
uid
);
...
@@ -843,7 +830,6 @@ public class InnerController implements IBaseController {
...
@@ -843,7 +830,6 @@ public class InnerController implements IBaseController {
return
contactRets
;
return
contactRets
;
}
}
@RequestMapping
(
"/user/wechat/phone_no"
)
@RequestMapping
(
"/user/wechat/phone_no"
)
public
JsonResult
queryOpenIdByPhoneNo
(
String
phoneNo
)
{
public
JsonResult
queryOpenIdByPhoneNo
(
String
phoneNo
)
{
if
(
StringUtils
.
isBlank
(
phoneNo
))
{
if
(
StringUtils
.
isBlank
(
phoneNo
))
{
...
@@ -890,7 +876,6 @@ public class InnerController implements IBaseController {
...
@@ -890,7 +876,6 @@ public class InnerController implements IBaseController {
* @param phoneNo
* @param phoneNo
* @return
* @return
*/
*/
@RequestMapping
(
"/flush/cache"
)
@RequestMapping
(
"/flush/cache"
)
public
JsonResult
flushCache
(
String
phoneNo
)
{
public
JsonResult
flushCache
(
String
phoneNo
)
{
if
(!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
if
(!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
...
@@ -906,7 +891,6 @@ public class InnerController implements IBaseController {
...
@@ -906,7 +891,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
"用户缓存信息已经删除"
,
null
);
return
JsonResult
.
buildSuccessResult
(
"用户缓存信息已经删除"
,
null
);
}
}
@RequestMapping
(
"/user/spouse/save"
)
@RequestMapping
(
"/user/spouse/save"
)
public
JsonResult
saveSpouse
(
Long
userId
,
MaritalStatus
status
,
String
spousePhone
,
String
spouseName
)
{
public
JsonResult
saveSpouse
(
Long
userId
,
MaritalStatus
status
,
String
spousePhone
,
String
spouseName
)
{
if
(
userId
==
null
||
userId
==
0
)
{
if
(
userId
==
null
||
userId
==
0
)
{
...
@@ -934,7 +918,6 @@ public class InnerController implements IBaseController {
...
@@ -934,7 +918,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
UserSpouseRet
.
getUserSpouseRet
(
userSpouse
));
return
JsonResult
.
buildSuccessResult
(
null
,
UserSpouseRet
.
getUserSpouseRet
(
userSpouse
));
}
}
@RequestMapping
(
"/user/spouse/findByUserId"
)
@RequestMapping
(
"/user/spouse/findByUserId"
)
public
JsonResult
querySpouse
(
Long
userId
)
{
public
JsonResult
querySpouse
(
Long
userId
)
{
if
(
userId
==
null
||
userId
==
0
)
{
if
(
userId
==
null
||
userId
==
0
)
{
...
@@ -948,7 +931,6 @@ public class InnerController implements IBaseController {
...
@@ -948,7 +931,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
UserSpouseRet
.
getUserSpouseRet
(
userSpouse
));
return
JsonResult
.
buildSuccessResult
(
null
,
UserSpouseRet
.
getUserSpouseRet
(
userSpouse
));
}
}
@RequestMapping
(
"/user/findByPhones"
)
@RequestMapping
(
"/user/findByPhones"
)
public
JsonResult
getUserIdByPhones
(
@RequestParam
(
"userPhones"
)
String
userPhones
)
{
public
JsonResult
getUserIdByPhones
(
@RequestParam
(
"userPhones"
)
String
userPhones
)
{
if
(
StringUtils
.
isBlank
(
userPhones
))
{
if
(
StringUtils
.
isBlank
(
userPhones
))
{
...
@@ -976,7 +958,6 @@ public class InnerController implements IBaseController {
...
@@ -976,7 +958,6 @@ public class InnerController implements IBaseController {
* @param userPhones
* @param userPhones
* @return
* @return
*/
*/
@RequestMapping
(
"/uuid/findByPhones"
)
@RequestMapping
(
"/uuid/findByPhones"
)
public
JsonResult
getUuidsByPhones
(
@RequestParam
(
"userPhones"
)
String
userPhones
)
{
public
JsonResult
getUuidsByPhones
(
@RequestParam
(
"userPhones"
)
String
userPhones
)
{
...
@@ -989,7 +970,6 @@ public class InnerController implements IBaseController {
...
@@ -989,7 +970,6 @@ public class InnerController implements IBaseController {
* @author v0.2 jinsong.zhu 2018年05月16日14:22:13
* @author v0.2 jinsong.zhu 2018年05月16日14:22:13
* 保存用户信息,其中地址信息和联系人信息为非必要条件;注意:如果同时提供了province和address字段则需要保证Address的完整
* 保存用户信息,其中地址信息和联系人信息为非必要条件;注意:如果同时提供了province和address字段则需要保证Address的完整
*/
*/
@RequestMapping
(
"/user/save_multi"
)
@RequestMapping
(
"/user/save_multi"
)
public
JsonResult
saveMulti
(
public
JsonResult
saveMulti
(
String
registeredFrom
,
String
registeredFrom
,
...
@@ -1078,7 +1058,6 @@ public class InnerController implements IBaseController {
...
@@ -1078,7 +1058,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
null
,
userRet
);
return
JsonResult
.
buildSuccessResult
(
null
,
userRet
);
}
}
@RequestMapping
(
"/user/register"
)
@RequestMapping
(
"/user/register"
)
public
JsonResult
register
(
String
phoneNo
,
String
password
,
Long
channelId
)
{
public
JsonResult
register
(
String
phoneNo
,
String
password
,
Long
channelId
)
{
if
(!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
if
(!
ValidationUtil
.
validatePhoneNo
(
phoneNo
))
{
...
@@ -1096,7 +1075,6 @@ public class InnerController implements IBaseController {
...
@@ -1096,7 +1075,6 @@ public class InnerController implements IBaseController {
}
}
//根据日期时间段查询新注册用户信息并返回
//根据日期时间段查询新注册用户信息并返回
@RequestMapping
(
"/contract/queryRegisterUsers"
)
@RequestMapping
(
"/contract/queryRegisterUsers"
)
public
JsonResult
findRegisterUserByTime
(
String
beginTime
,
String
endTime
)
{
public
JsonResult
findRegisterUserByTime
(
String
beginTime
,
String
endTime
)
{
if
(
null
==
beginTime
||
endTime
==
null
)
{
if
(
null
==
beginTime
||
endTime
==
null
)
{
...
@@ -1137,7 +1115,6 @@ public class InnerController implements IBaseController {
...
@@ -1137,7 +1115,6 @@ public class InnerController implements IBaseController {
* @param verificationCode 验证码(短信/语音)
* @param verificationCode 验证码(短信/语音)
* @return
* @return
*/
*/
@RequestMapping
(
"/verifyPhoneAndCode"
)
@RequestMapping
(
"/verifyPhoneAndCode"
)
public
JsonResult
verifyPhoneAndCode
(
public
JsonResult
verifyPhoneAndCode
(
@RequestParam
String
phoneNo
,
@RequestParam
String
verificationCode
,
@RequestParam
String
phoneNo
,
@RequestParam
String
verificationCode
,
...
@@ -1187,7 +1164,6 @@ public class InnerController implements IBaseController {
...
@@ -1187,7 +1164,6 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
"校验成功"
,
new
UserRet
(
user
));
return
JsonResult
.
buildSuccessResult
(
"校验成功"
,
new
UserRet
(
user
));
}
}
@RequestMapping
(
"/login"
)
@RequestMapping
(
"/login"
)
public
JsonResult
login
(
@RequestParam
String
phoneNo
,
@RequestParam
String
password
)
{
public
JsonResult
login
(
@RequestParam
String
phoneNo
,
@RequestParam
String
password
)
{
User
user
=
checkPhoneNoAndPassword
(
phoneNo
,
password
);
User
user
=
checkPhoneNoAndPassword
(
phoneNo
,
password
);
...
@@ -1234,7 +1210,6 @@ public class InnerController implements IBaseController {
...
@@ -1234,7 +1210,6 @@ public class InnerController implements IBaseController {
* @param phoneNo
* @param phoneNo
* @return
* @return
*/
*/
@RequestMapping
(
"/user/enable"
)
@RequestMapping
(
"/user/enable"
)
public
JsonResult
isEnable
(
String
phoneNo
)
{
public
JsonResult
isEnable
(
String
phoneNo
)
{
boolean
flag
=
false
;
boolean
flag
=
false
;
...
@@ -1257,7 +1232,6 @@ public class InnerController implements IBaseController {
...
@@ -1257,7 +1232,6 @@ public class InnerController implements IBaseController {
* @param userId
* @param userId
* @return
* @return
*/
*/
@ApiOperation
(
notes
=
"激活/启用 用户 - 供内部系统免密调用"
,
value
=
"激活/启用 用户"
,
nickname
=
"activeUser"
)
@ApiOperation
(
notes
=
"激活/启用 用户 - 供内部系统免密调用"
,
value
=
"激活/启用 用户"
,
nickname
=
"activeUser"
)
@RequestMapping
(
path
=
"/user/active"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
path
=
"/user/active"
,
method
=
RequestMethod
.
POST
)
public
JsonResult
activeUser
(
Long
userId
)
{
public
JsonResult
activeUser
(
Long
userId
)
{
...
@@ -1273,7 +1247,6 @@ public class InnerController implements IBaseController {
...
@@ -1273,7 +1247,6 @@ public class InnerController implements IBaseController {
* @param userId
* @param userId
* @return
* @return
*/
*/
@ApiOperation
(
notes
=
"注销/禁用 用户 - 供内部系统免密调用"
,
value
=
"注销/禁用 用户"
,
nickname
=
"forbiddenUser"
)
@ApiOperation
(
notes
=
"注销/禁用 用户 - 供内部系统免密调用"
,
value
=
"注销/禁用 用户"
,
nickname
=
"forbiddenUser"
)
@RequestMapping
(
path
=
"/user/disable"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
path
=
"/user/disable"
,
method
=
RequestMethod
.
POST
)
public
JsonResult
forbiddenUser
(
Long
userId
)
{
public
JsonResult
forbiddenUser
(
Long
userId
)
{
...
@@ -1290,7 +1263,6 @@ public class InnerController implements IBaseController {
...
@@ -1290,7 +1263,6 @@ public class InnerController implements IBaseController {
* @param idNo - 身份证号
* @param idNo - 身份证号
* @param name - 姓名
* @param name - 姓名
*/
*/
@ApiOperation
(
notes
=
"重置用户实名信息接口 - 供内部系统免密调用"
,
value
=
"重置用户实名信息"
,
nickname
=
"resetName"
)
@ApiOperation
(
notes
=
"重置用户实名信息接口 - 供内部系统免密调用"
,
value
=
"重置用户实名信息"
,
nickname
=
"resetName"
)
@RequestMapping
(
path
=
"/userDetail/reset/{userId}"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
path
=
"/userDetail/reset/{userId}"
,
method
=
RequestMethod
.
POST
)
public
JsonResult
resetName
(
@PathVariable
(
"userId"
)
Long
userId
,
@RequestParam
(
"name"
)
String
name
,
@RequestParam
(
"idNo"
)
String
idNo
)
{
public
JsonResult
resetName
(
@PathVariable
(
"userId"
)
Long
userId
,
@RequestParam
(
"name"
)
String
name
,
@RequestParam
(
"idNo"
)
String
idNo
)
{
...
@@ -1314,7 +1286,6 @@ public class InnerController implements IBaseController {
...
@@ -1314,7 +1286,6 @@ public class InnerController implements IBaseController {
* 重置密码接口
* 重置密码接口
* -- 供内部系统免密调用
* -- 供内部系统免密调用
*/
*/
@ApiOperation
(
notes
=
"重置密码接口 - 供内部系统免密调用"
,
value
=
"重置密码"
,
nickname
=
"resetPassword"
)
@ApiOperation
(
notes
=
"重置密码接口 - 供内部系统免密调用"
,
value
=
"重置密码"
,
nickname
=
"resetPassword"
)
@RequestMapping
(
path
=
"/user/password/reset"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
path
=
"/user/password/reset"
,
method
=
RequestMethod
.
POST
)
public
JsonResult
resetPassword
(
@RequestParam
(
"phone"
)
String
phone
)
{
public
JsonResult
resetPassword
(
@RequestParam
(
"phone"
)
String
phone
)
{
...
@@ -1338,7 +1309,6 @@ public class InnerController implements IBaseController {
...
@@ -1338,7 +1309,6 @@ public class InnerController implements IBaseController {
* 修改实名信息接口
* 修改实名信息接口
* -- 供内部人员使用(例如绝影)
* -- 供内部人员使用(例如绝影)
*/
*/
@RequestMapping
(
"/updateIdCard"
)
@RequestMapping
(
"/updateIdCard"
)
public
JsonResult
updateIdCard
(
@RequestParam
(
required
=
false
)
String
name
,
@RequestParam
(
required
=
false
)
String
idNo
,
public
JsonResult
updateIdCard
(
@RequestParam
(
required
=
false
)
String
name
,
@RequestParam
(
required
=
false
)
String
idNo
,
@RequestParam
String
phoneNo
,
@RequestParam
String
reason
,
@RequestParam
String
content
)
{
@RequestParam
String
phoneNo
,
@RequestParam
String
reason
,
@RequestParam
String
content
)
{
...
@@ -1369,7 +1339,6 @@ public class InnerController implements IBaseController {
...
@@ -1369,7 +1339,6 @@ public class InnerController implements IBaseController {
* 重置密码接口
* 重置密码接口
* -- 供内部人员使用(例如绝影)
* -- 供内部人员使用(例如绝影)
*/
*/
@RequestMapping
(
"/user/password/reset/{key}/{phone}"
)
@RequestMapping
(
"/user/password/reset/{key}/{phone}"
)
public
JsonResult
resetPasswordByKey
(
@PathVariable
(
"key"
)
String
key
,
@PathVariable
(
"phone"
)
String
phone
)
{
public
JsonResult
resetPasswordByKey
(
@PathVariable
(
"key"
)
String
key
,
@PathVariable
(
"phone"
)
String
phone
)
{
log
.
info
(
"密码重置请求,phone:[{}]"
,
phone
);
log
.
info
(
"密码重置请求,phone:[{}]"
,
phone
);
...
@@ -1390,7 +1359,6 @@ public class InnerController implements IBaseController {
...
@@ -1390,7 +1359,6 @@ public class InnerController implements IBaseController {
* @param content
* @param content
* @return
* @return
*/
*/
@RequestMapping
(
"/forbiddenUserOrNot"
)
@RequestMapping
(
"/forbiddenUserOrNot"
)
public
JsonResult
forbiddenUserOrNot
(
@RequestParam
String
phoneNo
,
@RequestParam
Boolean
enable
,
public
JsonResult
forbiddenUserOrNot
(
@RequestParam
String
phoneNo
,
@RequestParam
Boolean
enable
,
@RequestParam
String
reason
,
@RequestParam
String
content
)
{
@RequestParam
String
reason
,
@RequestParam
String
content
)
{
...
@@ -1424,7 +1392,6 @@ public class InnerController implements IBaseController {
...
@@ -1424,7 +1392,6 @@ public class InnerController implements IBaseController {
* @param content
* @param content
* @return
* @return
*/
*/
@RequestMapping
(
"/forbiddenUserWeChat"
)
@RequestMapping
(
"/forbiddenUserWeChat"
)
public
JsonResult
forbiddenUserWeChat
(
@RequestParam
Long
userId
,
@RequestParam
String
reason
,
@RequestParam
String
content
)
{
public
JsonResult
forbiddenUserWeChat
(
@RequestParam
Long
userId
,
@RequestParam
String
reason
,
@RequestParam
String
content
)
{
if
(
StringUtils
.
isBlank
(
reason
)
||
null
==
userId
||
userId
<=
0
)
{
if
(
StringUtils
.
isBlank
(
reason
)
||
null
==
userId
||
userId
<=
0
)
{
...
...
src/main/java/cn/quantgroup/xyqb/model/ApiResponse.java
0 → 100644
View file @
e0af3c19
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
cn
.
quantgroup
.
xyqb
.
model
;
import
javax.xml.bind.annotation.XmlTransient
;
@javax
.
xml
.
bind
.
annotation
.
XmlRootElement
public
class
ApiResponse
{
public
static
final
int
ERROR
=
1
;
public
static
final
int
WARNING
=
2
;
public
static
final
int
INFO
=
3
;
public
static
final
int
OK
=
4
;
public
static
final
int
TOO_BUSY
=
5
;
int
code
;
String
type
;
String
message
;
public
ApiResponse
(){}
public
ApiResponse
(
int
code
,
String
message
){
this
.
code
=
code
;
switch
(
code
){
case
ERROR:
setType
(
"error"
);
break
;
case
WARNING:
setType
(
"warning"
);
break
;
case
INFO:
setType
(
"info"
);
break
;
case
OK:
setType
(
"ok"
);
break
;
case
TOO_BUSY:
setType
(
"too busy"
);
break
;
default
:
setType
(
"unknown"
);
break
;
}
this
.
message
=
message
;
}
@XmlTransient
public
int
getCode
()
{
return
code
;
}
public
void
setCode
(
int
code
)
{
this
.
code
=
code
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
String
getMessage
()
{
return
message
;
}
public
void
setMessage
(
String
message
)
{
this
.
message
=
message
;
}
}
src/main/java/cn/quantgroup/xyqb/model/UserAssociationModel.java
View file @
e0af3c19
package
cn
.
quantgroup
.
xyqb
.
model
;
package
cn
.
quantgroup
.
xyqb
.
model
;
import
cn.quantgroup.user.enums.EducationEnum
;
import
cn.quantgroup.user.enums.IncomeEnum
;
import
cn.quantgroup.user.enums.IncomeRangeEnum
;
import
cn.quantgroup.user.enums.OccupationEnum
;
import
cn.quantgroup.xyqb.entity.Address
;
import
cn.quantgroup.xyqb.entity.Address
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
cn.quantgroup.xyqb.entity.Contact
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -24,12 +29,28 @@ public class UserAssociationModel implements Serializable {
...
@@ -24,12 +29,28 @@ public class UserAssociationModel implements Serializable {
private
String
idNo
;
private
String
idNo
;
private
String
name
;
private
String
name
;
private
String
gender
;
private
String
gender
;
private
String
marryStatus
;
private
String
educationEnum
;
private
String
occupationEnum
;
private
String
qq
;
private
String
qq
;
private
String
email
;
private
Long
registerFrom
;
private
Long
registerFrom
;
private
Long
merchantId
;
private
Long
merchantId
;
// 婚姻状态
private
String
marryStatus
;
// 受教育程度
private
String
educationEnum
;
// 职业
private
String
occupationEnum
;
// 收入水平范围
private
String
incomeRangeEnum
;
// 收入方式
private
String
incomeEnum
;
// 是否有车
private
Boolean
hasCar
;
// 是否有社保
private
Boolean
hasSocialSecurity
;
// 是否有房
private
Boolean
hasHouse
;
// 是否有信用卡
private
Boolean
hasCreditCard
;
private
List
<
AddressModel
>
addressList
;
private
List
<
AddressModel
>
addressList
;
private
List
<
ContactModel
>
contactList
;
private
List
<
ContactModel
>
contactList
;
...
...
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