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
446ea102
Commit
446ea102
authored
Jun 03, 2020
by
xiaozhe.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运营系统替换中台接口
parent
a3010499
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
JsonResult.java
src/main/java/cn/quantgroup/customer/rest/vo/JsonResult.java
+4
-0
SidecarServiceImpl.java
.../quantgroup/customer/service/impl/SidecarServiceImpl.java
+8
-4
No files found.
src/main/java/cn/quantgroup/customer/rest/vo/JsonResult.java
View file @
446ea102
...
...
@@ -74,6 +74,10 @@ public class JsonResult<T> implements Serializable {
return
new
JsonResult
(
msg
,
SUCCESS_CODE
,
data
,
API_INVOKE_UNEXPECTED_RESULT_CODE
);
}
public
static
<
T
>
JsonResult
buildErrorStateResult
(
String
msg
)
{
return
new
JsonResult
(
msg
,
ERROR_STATE_CODE
,
null
,
ERROR_BUSSINESS_CODE
);
}
@Override
public
String
toString
()
{
return
"JsonResult{"
+
...
...
src/main/java/cn/quantgroup/customer/service/impl/SidecarServiceImpl.java
View file @
446ea102
...
...
@@ -46,12 +46,16 @@ public class SidecarServiceImpl implements ISidecarService {
log
.
error
(
"{} 查询还款计划失败 loanId={} result={}"
,
logPre
,
loanId
,
result
);
return
JsonResult
.
buildErrorStateResult
(
"查询还款计划失败"
,
null
);
}
else
{
JsonResult
<
OrderRepayment
>
O
rderRepaymentResult
=
JSONTools
.
deserialize
(
result
,
new
TypeReference
<
MoResult
<
OrderRepayment
>>()
{
MoResult
<
OrderRepayment
>
o
rderRepaymentResult
=
JSONTools
.
deserialize
(
result
,
new
TypeReference
<
MoResult
<
OrderRepayment
>>()
{
});
if
(
OrderRepaymentResult
!=
null
)
{
return
OrderRepaymentResult
;
if
(
orderRepaymentResult
!=
null
)
{
if
(
orderRepaymentResult
.
isSuccess
()){
return
JsonResult
.
buildSuccessResult
(
"success"
,
orderRepaymentResult
.
getData
());
}
else
{
return
JsonResult
.
buildErrorStateResult
(
orderRepaymentResult
.
getMsg
());
}
}
else
{
return
JsonResult
.
buildErrorStateResult
(
"还款计划查询失败"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"还款计划查询失败"
);
}
}
}
...
...
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