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
4dc9d8a2
Commit
4dc9d8a2
authored
Feb 23, 2022
by
yexiong.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add talos处理失败的msg
parent
4b69bcd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
VccServiceImpl.java
...a/cn/quantgroup/customer/service/impl/VccServiceImpl.java
+8
-7
No files found.
src/main/java/cn/quantgroup/customer/service/impl/VccServiceImpl.java
View file @
4dc9d8a2
...
...
@@ -74,12 +74,12 @@ public class VccServiceImpl implements IVccService {
log
.
info
(
"queryPage | 请求talos结束,param={},result={}"
,
param
,
post
);
if
(
StringUtils
.
isBlank
(
post
)){
log
.
error
(
"queryPage | 请求talos异常,返回值为空,param={}"
,
query
);
return
JsonResult
.
buildErrorStateResult
(
"请求talos获取详情异常"
);
return
JsonResult
.
buildErrorStateResult
(
"请求talos获取详情异常
:没有请求通
"
);
}
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
post
);
if
(!
"0000"
.
equals
(
jsonObject
.
getString
(
"code"
))
||
!
"0000"
.
equals
(
jsonObject
.
getString
(
"businessCode"
))){
log
.
error
(
"queryPage | talos没有正确查询出结果
"
);
return
JsonResult
.
buildErrorStateResult
(
"talos没有正确查询出结果
"
);
log
.
error
(
"queryPage | talos没有正确查询出结果
:"
+
jsonObject
.
getString
(
"msg"
)
);
return
JsonResult
.
buildErrorStateResult
(
"talos没有正确查询出结果
:"
+
jsonObject
.
getString
(
"msg"
)
);
}
JSONObject
data
=
jsonObject
.
getJSONObject
(
"data"
);
JSONArray
list
=
data
.
getJSONArray
(
"list"
);
...
...
@@ -95,6 +95,7 @@ public class VccServiceImpl implements IVccService {
for
(
OfflineRepaySubmitRecord
record:
byUserIdEqualsAndRepayTypeEquals
){
List
<
ApplyBill
>
billList
=
GSON
.
fromJson
(
record
.
getBills
(),
new
TypeToken
<
List
<
ApplyBill
>>()
{
}.
getType
());
log
.
info
(
"billList={}"
,
billList
);
if
(
billList
.
contains
(
applyBill
)){
voList
.
get
(
i
).
setSerialNo
(
record
.
getSerialNo
());
voList
.
get
(
i
).
setApprovalStatus
(
record
.
getApprovalStatus
());
...
...
@@ -125,12 +126,12 @@ public class VccServiceImpl implements IVccService {
log
.
info
(
"queryRepayCalDetail | 请求talos结束,get={}"
,
get
);
if
(
StringUtils
.
isBlank
(
get
)){
log
.
error
(
"queryRepayCalDetail | 请求talos异常,返回值为空"
);
return
JsonResult
.
buildErrorStateResult
(
"请求talos获取详情异常"
);
return
JsonResult
.
buildErrorStateResult
(
"请求talos获取详情异常
:没有请求通
"
);
}
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
get
);
if
(!
"0000"
.
equals
(
jsonObject
.
getString
(
"code"
))
||
!
"0000"
.
equals
(
jsonObject
.
getString
(
"businessCode"
))){
log
.
error
(
"queryRepayCalDetail | talos没有正确查询出结果
"
);
return
JsonResult
.
buildErrorStateResult
(
"talos没有正确查询出结果
"
);
log
.
error
(
"queryRepayCalDetail | talos没有正确查询出结果
:"
+
jsonObject
.
getString
(
"msg"
)
);
return
JsonResult
.
buildErrorStateResult
(
"talos没有正确查询出结果
:"
+
jsonObject
.
getString
(
"msg"
)
);
}
JSONObject
data
=
jsonObject
.
getJSONObject
(
"data"
);
return
JsonResult
.
buildSuccessResult
(
"请求成功"
,
data
);
...
...
@@ -252,7 +253,7 @@ public class VccServiceImpl implements IVccService {
log
.
info
(
"queryRepayCalDetail | 请求talos结束,get={}"
,
get
);
if
(
StringUtils
.
isBlank
(
get
)){
log
.
error
(
"queryRepayCalDetail | 请求talos异常,返回值为空"
);
throw
new
Exception
(
"请求talos异常"
);
throw
new
Exception
(
"请求talos异常
:没有请求通
"
);
}
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
get
);
if
(!
"0000"
.
equals
(
jsonObject
.
getString
(
"code"
))
||
!
"0000"
.
equals
(
jsonObject
.
getString
(
"businessCode"
))){
...
...
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