package com.supersavedriving.driver.modular.system.service;
|
|
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.*;
|
|
import java.util.List;
|
|
/**
|
* 订单
|
* @author pzb
|
* @Date 2023/2/16 15:47
|
*/
|
public interface IOrderService extends IService<Order> {
|
|
|
/**
|
* 获取司机服务中的订单
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
Long queryDriverServerOrder(Integer uid) throws Exception;
|
|
|
/**
|
* 司机代客下单
|
* @param uid
|
* @param addOrderWarpper
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil driverAddOrder(Integer uid, AddOrderWarpper addOrderWarpper) throws Exception;
|
|
|
/**
|
* 获取大厅订单列表
|
* @param uid
|
* @param pageNum
|
* @param pageSize
|
* @return
|
* @throws Exception
|
*/
|
List<HallOrderList> queryOrderHall(Integer uid, Integer pageNum, Integer pageSize) throws Exception;
|
|
|
/**
|
* 司机拒单
|
* @param uid
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil rejectionOrder(Integer uid, Long orderId) throws Exception;
|
|
|
|
|
/**
|
* 司机接单操作
|
* @param uid
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil receiveOrder(Integer uid, Long orderId) throws Exception;
|
|
|
/**
|
* 获取订单详情
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
OrderInfoWarpper queryOrderInfo(Integer uid, 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;
|
}
|