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
a3010499
Commit
a3010499
authored
Jun 03, 2020
by
xiaozhe.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运营系统替换中台接口
parent
935a1e78
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
MoResult.java
src/main/java/cn/quantgroup/customer/rest/vo/MoResult.java
+1
-1
RepayServiceImpl.java
...cn/quantgroup/customer/service/impl/RepayServiceImpl.java
+6
-5
SidecarServiceImpl.java
.../quantgroup/customer/service/impl/SidecarServiceImpl.java
+5
-5
No files found.
src/main/java/cn/quantgroup/customer/rest/vo/MoResult.java
View file @
a3010499
...
@@ -13,7 +13,7 @@ public class MoResult<T> implements Serializable {
...
@@ -13,7 +13,7 @@ public class MoResult<T> implements Serializable {
private
String
msg
=
""
;
private
String
msg
=
""
;
// 0成功,1失败
// 0成功,1失败
private
String
code
=
"0"
;
private
String
code
=
"0"
;
// 业务错误码
private
T
data
=
null
;
private
T
data
=
null
;
...
...
src/main/java/cn/quantgroup/customer/service/impl/RepayServiceImpl.java
View file @
a3010499
...
@@ -6,6 +6,7 @@ import cn.quantgroup.customer.exception.BusinessException;
...
@@ -6,6 +6,7 @@ import cn.quantgroup.customer.exception.BusinessException;
import
cn.quantgroup.customer.rest.param.repay.RepayOrderInfoQuery
;
import
cn.quantgroup.customer.rest.param.repay.RepayOrderInfoQuery
;
import
cn.quantgroup.customer.rest.param.repay.RepayOrderQuery
;
import
cn.quantgroup.customer.rest.param.repay.RepayOrderQuery
;
import
cn.quantgroup.customer.rest.vo.JsonResult
;
import
cn.quantgroup.customer.rest.vo.JsonResult
;
import
cn.quantgroup.customer.rest.vo.MoResult
;
import
cn.quantgroup.customer.rest.vo.repay.RepayInfoResult
;
import
cn.quantgroup.customer.rest.vo.repay.RepayInfoResult
;
import
cn.quantgroup.customer.rest.vo.repay.RepayOptRecord
;
import
cn.quantgroup.customer.rest.vo.repay.RepayOptRecord
;
import
cn.quantgroup.customer.rest.vo.repay.XyqbRepayInfo
;
import
cn.quantgroup.customer.rest.vo.repay.XyqbRepayInfo
;
...
@@ -102,9 +103,9 @@ public class RepayServiceImpl implements IRepayService {
...
@@ -102,9 +103,9 @@ public class RepayServiceImpl implements IRepayService {
return
JsonResult
.
buildErrorStateResult
(
ErrorCodeEnum
.
RETURN_ERROR
.
getMessage
(),
ErrorCodeEnum
.
RETURN_ERROR
.
getCode
());
return
JsonResult
.
buildErrorStateResult
(
ErrorCodeEnum
.
RETURN_ERROR
.
getMessage
(),
ErrorCodeEnum
.
RETURN_ERROR
.
getCode
());
}
}
Json
Result
<
List
<
XyqbRepayInfo
>>
xyqbRepayInfoResult
;
Mo
Result
<
List
<
XyqbRepayInfo
>>
xyqbRepayInfoResult
;
try
{
try
{
Type
jsonType
=
new
com
.
google
.
gson
.
reflect
.
TypeToken
<
Json
Result
<
List
<
XyqbRepayInfo
>>>()
{
Type
jsonType
=
new
com
.
google
.
gson
.
reflect
.
TypeToken
<
Mo
Result
<
List
<
XyqbRepayInfo
>>>()
{
}.
getType
();
}.
getType
();
xyqbRepayInfoResult
=
Constant
.
GSON
.
fromJson
(
repayInfoStr
,
jsonType
);
xyqbRepayInfoResult
=
Constant
.
GSON
.
fromJson
(
repayInfoStr
,
jsonType
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -140,9 +141,9 @@ public class RepayServiceImpl implements IRepayService {
...
@@ -140,9 +141,9 @@ public class RepayServiceImpl implements IRepayService {
return
JsonResult
.
buildErrorStateResult
(
ErrorCodeEnum
.
RETURN_ERROR
.
getMessage
(),
ErrorCodeEnum
.
RETURN_ERROR
.
getCode
());
return
JsonResult
.
buildErrorStateResult
(
ErrorCodeEnum
.
RETURN_ERROR
.
getMessage
(),
ErrorCodeEnum
.
RETURN_ERROR
.
getCode
());
}
}
Json
Result
<
List
<
RepayOptRecord
>>
repayOptRecordResult
;
Mo
Result
<
List
<
RepayOptRecord
>>
repayOptRecordResult
;
try
{
try
{
Type
jsonType
=
new
com
.
google
.
gson
.
reflect
.
TypeToken
<
Json
Result
<
List
<
RepayOptRecord
>>>()
{
Type
jsonType
=
new
com
.
google
.
gson
.
reflect
.
TypeToken
<
Mo
Result
<
List
<
RepayOptRecord
>>>()
{
}.
getType
();
}.
getType
();
repayOptRecordResult
=
Constant
.
GSON
.
fromJson
(
optRecordsStr
,
jsonType
);
repayOptRecordResult
=
Constant
.
GSON
.
fromJson
(
optRecordsStr
,
jsonType
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -151,6 +152,6 @@ public class RepayServiceImpl implements IRepayService {
...
@@ -151,6 +152,6 @@ public class RepayServiceImpl implements IRepayService {
}
}
log
.
info
(
"[查询还款操作记录],返回 repayOptRecordResult={}"
,
repayOptRecordResult
);
log
.
info
(
"[查询还款操作记录],返回 repayOptRecordResult={}"
,
repayOptRecordResult
);
return
repayOptRecordResult
;
return
JsonResult
.
buildSuccessResult
(
"处理成功"
,
repayOptRecordResult
.
getData
())
;
}
}
}
}
src/main/java/cn/quantgroup/customer/service/impl/SidecarServiceImpl.java
View file @
a3010499
...
@@ -3,6 +3,7 @@ package cn.quantgroup.customer.service.impl;
...
@@ -3,6 +3,7 @@ package cn.quantgroup.customer.service.impl;
import
cn.quantgroup.customer.model.order.OrderRepayment
;
import
cn.quantgroup.customer.model.order.OrderRepayment
;
import
cn.quantgroup.customer.rest.param.repay.RepayOrderInfoQuery
;
import
cn.quantgroup.customer.rest.param.repay.RepayOrderInfoQuery
;
import
cn.quantgroup.customer.rest.vo.JsonResult
;
import
cn.quantgroup.customer.rest.vo.JsonResult
;
import
cn.quantgroup.customer.rest.vo.MoResult
;
import
cn.quantgroup.customer.service.ISidecarService
;
import
cn.quantgroup.customer.service.ISidecarService
;
import
cn.quantgroup.customer.service.http.IHttpService
;
import
cn.quantgroup.customer.service.http.IHttpService
;
import
cn.quantgroup.customer.util.JSONTools
;
import
cn.quantgroup.customer.util.JSONTools
;
...
@@ -45,11 +46,10 @@ public class SidecarServiceImpl implements ISidecarService {
...
@@ -45,11 +46,10 @@ public class SidecarServiceImpl implements ISidecarService {
log
.
error
(
"{} 查询还款计划失败 loanId={} result={}"
,
logPre
,
loanId
,
result
);
log
.
error
(
"{} 查询还款计划失败 loanId={} result={}"
,
logPre
,
loanId
,
result
);
return
JsonResult
.
buildErrorStateResult
(
"查询还款计划失败"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"查询还款计划失败"
,
null
);
}
else
{
}
else
{
TypeReference
<
JsonResult
<
OrderRepayment
>>
typeToken
=
new
TypeReference
<
JsonResult
<
OrderRepayment
>>()
{
JsonResult
<
OrderRepayment
>
OrderRepaymentResult
=
JSONTools
.
deserialize
(
result
,
new
TypeReference
<
MoResult
<
OrderRepayment
>>()
{
};
});
JsonResult
<
OrderRepayment
>
result1
=
JSONTools
.
deserialize
(
result
,
typeToken
);
if
(
OrderRepaymentResult
!=
null
)
{
if
(
result1
!=
null
)
{
return
OrderRepaymentResult
;
return
result1
;
}
else
{
}
else
{
return
JsonResult
.
buildErrorStateResult
(
"还款计划查询失败"
,
null
);
return
JsonResult
.
buildErrorStateResult
(
"还款计划查询失败"
,
null
);
}
}
...
...
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