From 4ba348b700fd7f461f754a283eaeeba3fc9ff36c Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期六, 25 二月 2023 16:16:33 +0800
Subject: [PATCH] 新增加司机端接口

---
 driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/IOrderService.java |   86 +++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 82 insertions(+), 4 deletions(-)

diff --git a/driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/IOrderService.java b/driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/IOrderService.java
index 65888c8..a205622 100644
--- a/driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/IOrderService.java
+++ b/driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/IOrderService.java
@@ -3,9 +3,7 @@
 import com.baomidou.mybatisplus.service.IService;
 import com.supersavedriving.driver.modular.system.model.Order;
 import com.supersavedriving.driver.modular.system.util.ResultUtil;
-import com.supersavedriving.driver.modular.system.warpper.AddOrderWarpper;
-import com.supersavedriving.driver.modular.system.warpper.BaseWarpper;
-import com.supersavedriving.driver.modular.system.warpper.HallOrderList;
+import com.supersavedriving.driver.modular.system.warpper.*;
 
 import java.util.List;
 
@@ -69,6 +67,86 @@
     ResultUtil receiveOrder(Integer uid, Long orderId) throws Exception;
 
 
+    /**
+     * 获取订单详情
+     * @param orderId
+     * @return
+     * @throws Exception
+     */
+    OrderInfoWarpper queryOrderInfo(Integer uid, Long orderId) throws Exception;
 
-    queryOrderInfo(Long orderId) throws Exception;
+
+
+
+
+    /**
+     * 司机走订单流程
+     * @param uid
+     * @return
+     * @throws Exception
+     */
+    ResultUtil driverProcessOperations(Integer uid, ProcessOperationsWarpper processOperationsWarpper) throws Exception;
+
+
+    /**
+     * 司机转单操作
+     * @param uid
+     * @param orderId
+     * @param cause
+     * @return
+     * @throws Exception
+     */
+    ResultUtil transferOrder(Integer uid, Long orderId, String cause) throws Exception;
+
+
+    /**
+     * 修改终点地址
+     * @param uid
+     * @param orderEndAddressWarpper
+     * @return
+     * @throws Exception
+     */
+    ResultUtil setOrderEndAddress(Integer uid, OrderEndAddressWarpper orderEndAddressWarpper) throws Exception;
+
+
+    /**
+     * 取消转单操作
+     * @param uid
+     * @param orderId
+     * @return
+     * @throws Exception
+     */
+    ResultUtil cancelTransferOrder(Integer uid, Long orderId) throws Exception;
+
+
+    /**
+     * 司机取消订单
+     * @param uid
+     * @param orderId
+     * @param cause
+     * @return
+     * @throws Exception
+     */
+    ResultUtil driverCancelOrder(Integer uid, Long orderId, String cause) throws Exception;
+
+
+    /**
+     * 获取订单费用明细
+     * @param uid
+     * @param orderId
+     * @return
+     * @throws Exception
+     */
+    OrderPriceWarpper queryOrderPrice(Integer uid, Long orderId) throws Exception;
+
+
+    /**
+     * 修改订单状态
+     * @param uid
+     * @param orderId
+     * @param state
+     * @return
+     * @throws Exception
+     */
+    ResultUtil setOrderStatus(Integer uid, Long orderId, Integer state) throws Exception;
 }

--
Gitblit v1.7.1