Commit 0f8e969b authored by 王向伟's avatar 王向伟

ding

parent d3a7849d
...@@ -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));
} }
......
...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment