| | |
| | | // @Autowired |
| | | // private ICBCPayUtil icbcPayUtil; |
| | | |
| | | |
| | | |
| | | @Autowired |
| | | private IOrderTransferService orderTransferService; |
| | | /** |
| | | * 获取订单列表 |
| | | * @param type |
| | |
| | | if(type == 2){//跨城 |
| | | list = orderCrossCityService.queryOrderList(search, orderSource, state, lineId, pageNum, size, uid); |
| | | } |
| | | |
| | | if(type ==7){//接送机 |
| | | list = orderTransferService.queryOrderList(search, orderSource, state, pageNum, size, uid); |
| | | } |
| | | |
| | | return ResultUtil.success(OrderListWarpper.getOrderListWarppers(list)); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | |
| | | if(orderType == 2){//跨城 |
| | | map = orderCrossCityService.queryOrderInfo(orderId); |
| | | } |
| | | if(orderType == 7){//专车 |
| | | map = orderTransferService.queryOrderInfo(orderId); |
| | | } |
| | | return ResultUtil.success(OrderInfoWarpper.getOrderInfoWarpper(map)); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | |
| | | if(orderType == 2){//跨城 |
| | | return orderCrossCityService.cancelOrder(orderId); |
| | | } |
| | | if(orderType == 7){//接送机 |
| | | return orderTransferService.cancelOrder(orderId); |
| | | } |
| | | return ResultUtil.success(); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |