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
9a814e07
Commit
9a814e07
authored
Jan 17, 2022
by
吴琼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改返回状态码
parent
88e44011
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
UserRest.java
src/main/java/cn/quantgroup/customer/rest/UserRest.java
+3
-3
No files found.
src/main/java/cn/quantgroup/customer/rest/UserRest.java
View file @
9a814e07
...
@@ -254,7 +254,7 @@ public class UserRest {
...
@@ -254,7 +254,7 @@ public class UserRest {
@PostMapping
(
value
=
"/search/getRewardPointsType"
)
@PostMapping
(
value
=
"/search/getRewardPointsType"
)
public
JsonResult
getRewardPointsTypeInit
()
{
public
JsonResult
getRewardPointsTypeInit
()
{
MoResult
<
String
>
result
=
userService
.
getRewardPointsType
();
MoResult
<
String
>
result
=
userService
.
getRewardPointsType
();
if
(!
result
.
isSuccess
(
)){
if
(!
"0000"
.
equals
(
result
.
getCode
()
)){
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
}
}
return
JsonResult
.
buildSuccessResult
(
"success"
,
result
.
getData
());
return
JsonResult
.
buildSuccessResult
(
"success"
,
result
.
getData
());
...
@@ -274,7 +274,7 @@ public class UserRest {
...
@@ -274,7 +274,7 @@ public class UserRest {
@PostMapping
(
value
=
"/search/getUserCouponInfo"
)
@PostMapping
(
value
=
"/search/getUserCouponInfo"
)
public
JsonResult
getUserCouponInfo
(
UserQueryParam
userQueryParam
)
{
public
JsonResult
getUserCouponInfo
(
UserQueryParam
userQueryParam
)
{
MoResult
<
String
>
result
=
userService
.
queryUserCouponInfoByUserParam
(
userQueryParam
);
MoResult
<
String
>
result
=
userService
.
queryUserCouponInfoByUserParam
(
userQueryParam
);
if
(!
result
.
isSuccess
(
)){
if
(!
"0000"
.
equals
(
result
.
getCode
()
)){
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
}
}
return
JsonResult
.
buildSuccessResult
(
"success"
,
result
);
return
JsonResult
.
buildSuccessResult
(
"success"
,
result
);
...
@@ -287,7 +287,7 @@ public class UserRest {
...
@@ -287,7 +287,7 @@ public class UserRest {
@PostMapping
(
value
=
"/search/queryPointDetailByPage"
)
@PostMapping
(
value
=
"/search/queryPointDetailByPage"
)
public
JsonResult
queryPointDetailByPage
(
UserQueryParam
userQueryParam
)
{
public
JsonResult
queryPointDetailByPage
(
UserQueryParam
userQueryParam
)
{
MoResult
<
String
>
result
=
userService
.
queryPointDetailByPage
(
userQueryParam
);
MoResult
<
String
>
result
=
userService
.
queryPointDetailByPage
(
userQueryParam
);
if
(
result
==
null
||
!
result
.
isSuccess
(
)){
if
(
result
==
null
||
!
"0000"
.
equals
(
result
.
getCode
()
)){
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
return
JsonResult
.
buildErrorStateResult
(
result
.
getMsg
(),
result
.
getData
());
}
}
return
JsonResult
.
buildSuccessResult
(
"success"
,
result
.
getData
());
return
JsonResult
.
buildSuccessResult
(
"success"
,
result
.
getData
());
...
...
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