Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
customer-service
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
QG
customer-service
Commits
fc941aef
Commit
fc941aef
authored
Jul 09, 2020
by
xiaozhe.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
迁移谛听功能
parent
40bde7ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
UserRest.java
src/main/java/cn/quantgroup/customer/rest/UserRest.java
+15
-5
No files found.
src/main/java/cn/quantgroup/customer/rest/UserRest.java
View file @
fc941aef
...
@@ -17,6 +17,7 @@ import cn.quantgroup.customer.rest.vo.JsonResult;
...
@@ -17,6 +17,7 @@ import cn.quantgroup.customer.rest.vo.JsonResult;
import
cn.quantgroup.customer.rest.vo.MoResult
;
import
cn.quantgroup.customer.rest.vo.MoResult
;
import
cn.quantgroup.customer.service.IUserService
;
import
cn.quantgroup.customer.service.IUserService
;
import
cn.quantgroup.customer.service.IXyqbService
;
import
cn.quantgroup.customer.service.IXyqbService
;
import
com.google.common.collect.Maps
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -28,6 +29,7 @@ import javax.validation.Valid;
...
@@ -28,6 +29,7 @@ import javax.validation.Valid;
import
java.security.Principal
;
import
java.security.Principal
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
static
cn
.
quantgroup
.
customer
.
constant
.
Constant
.
GSON
;
import
static
cn
.
quantgroup
.
customer
.
constant
.
Constant
.
GSON
;
...
@@ -211,15 +213,23 @@ public class UserRest {
...
@@ -211,15 +213,23 @@ public class UserRest {
}
}
/**
/**
* 查询用户绑卡信息
* 查询用户
和
绑卡信息
*
*
* @param user
Id
* @param user
QueryParam
* @return
* @return
*/
*/
@PostMapping
(
value
=
"/card_list"
)
@PostMapping
(
value
=
"/card_list"
)
public
JsonResult
findUserCardList
(
@RequestParam
(
required
=
true
)
Long
userId
)
{
public
JsonResult
findUserCardList
(
UserQueryParam
userQueryParam
)
{
List
<
UserCardInfo
>
userPayCardList
=
xyqbService
.
findUserPayCardList
(
userId
);
Map
<
String
,
Object
>
result
=
Maps
.
newHashMap
();
return
JsonResult
.
buildSuccessResult
(
"success"
,
userPayCardList
);
JsonResult
<
UserBasicInfo
>
userInfo
=
userService
.
findUserInfo
(
userQueryParam
);
if
(
userInfo
!=
null
&&
userInfo
.
isSuccess
()
&&
userInfo
.
getData
()
!=
null
)
{
UserBasicInfo
userBasicInfo
=
userInfo
.
getData
();
result
.
put
(
"userInfo"
,
userBasicInfo
)
Long
userId
=
userBasicInfo
.
getUserId
();
List
<
UserCardInfo
>
userPayCardList
=
xyqbService
.
findUserPayCardList
(
userId
);
result
.
put
(
"cardInfo"
,
userPayCardList
);
}
return
JsonResult
.
buildSuccessResult
(
"success"
,
result
);
}
}
...
...
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