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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QG
cash-loan-flow-boss
Commits
0f8e969b
Commit
0f8e969b
authored
May 29, 2020
by
王向伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ding
parent
d3a7849d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
OrderController.java
...ashloanflowboss/api/order/controller/OrderController.java
+2
-1
MoOrderServiceImpl.java
...ashloanflowboss/api/order/service/MoOrderServiceImpl.java
+19
-2
No files found.
src/main/java/cn/quantgroup/cashloanflowboss/api/order/controller/OrderController.java
View file @
0f8e969b
...
@@ -2,6 +2,7 @@ package cn.quantgroup.cashloanflowboss.api.order.controller;
...
@@ -2,6 +2,7 @@ package cn.quantgroup.cashloanflowboss.api.order.controller;
import
cn.quantgroup.cashloanflowboss.api.order.model.ApproveVo
;
import
cn.quantgroup.cashloanflowboss.api.order.model.ApproveVo
;
import
cn.quantgroup.cashloanflowboss.api.order.model.LendingFormModel
;
import
cn.quantgroup.cashloanflowboss.api.order.model.LendingFormModel
;
import
cn.quantgroup.cashloanflowboss.api.order.service.MoOrderServiceImpl
;
import
cn.quantgroup.cashloanflowboss.api.order.service.OrderService
;
import
cn.quantgroup.cashloanflowboss.api.order.service.OrderService
;
import
cn.quantgroup.cashloanflowboss.component.route.ServiceRoute
;
import
cn.quantgroup.cashloanflowboss.component.route.ServiceRoute
;
import
cn.quantgroup.cashloanflowboss.component.security.annotiation.Security
;
import
cn.quantgroup.cashloanflowboss.component.security.annotiation.Security
;
...
@@ -54,7 +55,7 @@ public class OrderController {
...
@@ -54,7 +55,7 @@ public class OrderController {
if
(
pageNumber
==
null
||
pageSize
==
null
)
{
if
(
pageNumber
==
null
||
pageSize
==
null
)
{
return
Result
.
buildFail
(
"page信息不对"
);
return
Result
.
buildFail
(
"page信息不对"
);
}
}
OrderService
orderService
=
serviceRoute
.
routeOrderService
(
channelId
,
channelOrderNumber
,
loanId
);
OrderService
orderService
=
Application
.
getBean
(
MoOrderServiceImpl
.
class
);
return
Result
.
buildSuccess
(
orderService
.
orderList
(
channelId
,
channelOrderNumber
,
applyNo
,
loanId
,
pageNumber
,
pageSize
));
return
Result
.
buildSuccess
(
orderService
.
orderList
(
channelId
,
channelOrderNumber
,
applyNo
,
loanId
,
pageNumber
,
pageSize
));
}
}
...
...
src/main/java/cn/quantgroup/cashloanflowboss/api/order/service/MoOrderServiceImpl.java
View file @
0f8e969b
...
@@ -10,6 +10,7 @@ import cn.quantgroup.cashloanflowboss.api.order.entity.OrderApprove;
...
@@ -10,6 +10,7 @@ import cn.quantgroup.cashloanflowboss.api.order.entity.OrderApprove;
import
cn.quantgroup.cashloanflowboss.api.order.model.*
;
import
cn.quantgroup.cashloanflowboss.api.order.model.*
;
import
cn.quantgroup.cashloanflowboss.api.order.repository.OrderApproveRepository
;
import
cn.quantgroup.cashloanflowboss.api.order.repository.OrderApproveRepository
;
import
cn.quantgroup.cashloanflowboss.api.order.util.OrderUtil
;
import
cn.quantgroup.cashloanflowboss.api.order.util.OrderUtil
;
import
cn.quantgroup.cashloanflowboss.component.route.ServiceRoute
;
import
cn.quantgroup.cashloanflowboss.core.Application
;
import
cn.quantgroup.cashloanflowboss.core.Application
;
import
cn.quantgroup.cashloanflowboss.core.annotation.opt.OperationAnno
;
import
cn.quantgroup.cashloanflowboss.core.annotation.opt.OperationAnno
;
import
cn.quantgroup.cashloanflowboss.core.base.ServiceResult
;
import
cn.quantgroup.cashloanflowboss.core.base.ServiceResult
;
...
@@ -100,6 +101,9 @@ public class MoOrderServiceImpl implements OrderService{
...
@@ -100,6 +101,9 @@ public class MoOrderServiceImpl implements OrderService{
@Autowired
@Autowired
private
CancelPreLoanRepository
cancelPreLoanRepository
;
private
CancelPreLoanRepository
cancelPreLoanRepository
;
@Autowired
private
ServiceRoute
serviceRoute
;
@Autowired
@Autowired
private
OPCenter
opCenter
;
private
OPCenter
opCenter
;
...
@@ -152,8 +156,21 @@ public class MoOrderServiceImpl implements OrderService{
...
@@ -152,8 +156,21 @@ public class MoOrderServiceImpl implements OrderService{
}
}
orderVo
.
setCreatedAt
(
it
.
getCreatedAt
());
orderVo
.
setCreatedAt
(
it
.
getCreatedAt
());
if
(
StringUtils
.
isNotEmpty
(
it
.
getApplyNo
()))
{
if
(
StringUtils
.
isNotEmpty
(
it
.
getApplyNo
()))
{
OrderService
orderService
=
serviceRoute
.
routeOrderService
(
it
.
getRegisteredFrom
(),
null
,
null
);
JsonResult
<
XyqbCurrentOrderStatusServiceResultModel
>
xyqbCenterServiceXyqbOrderStatus
=
koalaCenterService
.
getOrderStatus
(
it
.
getApplyNo
(),
it
.
getLoanId
());
JsonResult
<
XyqbCurrentOrderStatusServiceResultModel
>
xyqbCenterServiceXyqbOrderStatus
;
if
(
orderService
instanceof
MoOrderServiceImpl
){
xyqbCenterServiceXyqbOrderStatus
=
koalaCenterService
.
getOrderStatus
(
it
.
getApplyNo
(),
it
.
getLoanId
());
}
else
{
//
ServiceResult
<
XyqbCurrentOrderStatusServiceResultModel
>
orderStatusResult
=
xyqbCenterService
.
getXyqbOrderStatus
(
it
.
getApplyNo
(),
it
.
getLoanId
());
if
(
Objects
.
nonNull
(
orderStatusResult
)
&&
orderStatusResult
.
isSuccess
()){
xyqbCenterServiceXyqbOrderStatus
=
JsonResult
.
buildSuccess
(
"success"
,
orderStatusResult
.
getData
());
xyqbCenterServiceXyqbOrderStatus
.
setSuccess
(
true
);
}
else
{
xyqbCenterServiceXyqbOrderStatus
=
JsonResult
.
buildError
(
"success"
,
null
);
xyqbCenterServiceXyqbOrderStatus
.
setSuccess
(
false
);
}
}
log
.
info
(
"[xyqbCenterService.getXyqbOrderStatus]xyqbOrderStatus={}"
,
JSONTools
.
serialize
(
xyqbCenterServiceXyqbOrderStatus
));
log
.
info
(
"[xyqbCenterService.getXyqbOrderStatus]xyqbOrderStatus={}"
,
JSONTools
.
serialize
(
xyqbCenterServiceXyqbOrderStatus
));
if
(
xyqbCenterServiceXyqbOrderStatus
.
getSuccess
())
{
if
(
xyqbCenterServiceXyqbOrderStatus
.
getSuccess
())
{
QueryXyqbOrderStatus
currentStatus
=
xyqbCenterServiceXyqbOrderStatus
.
getData
().
getCurrentStatus
();
QueryXyqbOrderStatus
currentStatus
=
xyqbCenterServiceXyqbOrderStatus
.
getData
().
getCurrentStatus
();
...
...
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