Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cash-loan-flow-boss
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
胡慧
cash-loan-flow-boss
Commits
4c1df48c
Commit
4c1df48c
authored
Aug 20, 2019
by
suntao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单 未授信等情况
parent
8000fd2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
13 deletions
+20
-13
OrderService.java
...roup/cashloanflowboss/api/order/service/OrderService.java
+20
-13
No files found.
src/main/java/cn/quantgroup/cashloanflowboss/api/order/service/OrderService.java
View file @
4c1df48c
...
...
@@ -111,21 +111,28 @@ public class OrderService {
orderVo
.
setChannelId
(
it
.
getRegisteredFrom
());
orderVo
.
setChannelOrderNumber
(
it
.
getChannelOrderNo
());
orderVo
.
setCreatedAt
(
it
.
getCreatedAt
().
getTime
());
OrderApprove
orderApprove
=
orderApproveRepository
.
findByCreditNumber
(
it
.
getApplyNo
());
ServiceResult
<
XyqbCurrentOrderStatusServiceResultModel
>
xyqbCenterServiceXyqbOrderStatus
=
xyqbCenterService
.
getXyqbOrderStatus
(
it
.
getApplyNo
(),
it
.
getLoanId
());
log
.
info
(
"[xyqbCenterService.getXyqbOrderStatus]xyqbOrderStatus={}"
,
JSONTools
.
serialize
(
xyqbCenterServiceXyqbOrderStatus
));
if
(
xyqbCenterServiceXyqbOrderStatus
.
isSuccess
())
{
QueryXyqbOrderStatus
currentStatus
=
xyqbCenterServiceXyqbOrderStatus
.
getData
().
getCurrentStatus
();
Tuple
<
String
,
List
<
OrderVo
.
OptButton
>>
currentStatusAndButtons
=
OrderUtil
.
getCurrentStatusAndButtons
(
currentStatus
,
orderApprove
);
orderVo
.
setStatus
(
currentStatusAndButtons
.
getKey
());
orderVo
.
setOpt
(
currentStatusAndButtons
.
getValue
());
orderVo
.
setMessage
(
""
);
if
(
StringUtils
.
isNotEmpty
(
it
.
getApplyNo
()))
{
OrderApprove
orderApprove
=
orderApproveRepository
.
findByCreditNumber
(
it
.
getApplyNo
());
ServiceResult
<
XyqbCurrentOrderStatusServiceResultModel
>
xyqbCenterServiceXyqbOrderStatus
=
xyqbCenterService
.
getXyqbOrderStatus
(
it
.
getApplyNo
(),
it
.
getLoanId
());
log
.
info
(
"[xyqbCenterService.getXyqbOrderStatus]xyqbOrderStatus={}"
,
JSONTools
.
serialize
(
xyqbCenterServiceXyqbOrderStatus
));
if
(
xyqbCenterServiceXyqbOrderStatus
.
isSuccess
())
{
QueryXyqbOrderStatus
currentStatus
=
xyqbCenterServiceXyqbOrderStatus
.
getData
().
getCurrentStatus
();
Tuple
<
String
,
List
<
OrderVo
.
OptButton
>>
currentStatusAndButtons
=
OrderUtil
.
getCurrentStatusAndButtons
(
currentStatus
,
orderApprove
);
orderVo
.
setStatus
(
currentStatusAndButtons
.
getKey
());
orderVo
.
setOpt
(
currentStatusAndButtons
.
getValue
());
orderVo
.
setMessage
(
""
);
}
else
{
orderVo
.
setMessage
(
"订单查询错误"
);
}
}
else
{
orderVo
.
setMessage
(
"订单查询错误"
);
orderVo
.
setStatus
(
"授信中"
);
orderVo
.
setOpt
(
new
ArrayList
<>());
orderVo
.
setMessage
(
""
);
}
return
orderVo
;
});
}
...
...
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