package com.stylefeng.guns.modular.smallLogistics.server;
|
|
import com.baomidou.mybatisplus.service.IService;
|
import com.stylefeng.guns.modular.smallLogistics.model.OrderLogistics;
|
import com.stylefeng.guns.modular.system.util.ResultUtil;
|
|
import java.util.Date;
|
import java.util.List;
|
import java.util.Map;
|
|
public interface IOrderLogisticsService extends IService<OrderLogistics> {
|
|
|
/**
|
* 获取司机的抢单页面订单详情
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryPushOrder(Integer orderId) throws Exception;
|
|
|
|
/**
|
* 抢单操作
|
* @param orderId
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil grabOrder(Integer orderId, Integer uid, Integer language) throws Exception;
|
|
|
|
/**
|
* 获取订单详情页(服务中的页面)
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryOrderInfo(Integer orderId) throws Exception;
|
|
|
|
/**
|
* 走订单流程操作
|
* @param orderId
|
* @param state
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil process(Integer orderId, Integer state, Double lon, Double lat, String address, Integer language) throws Exception;
|
|
|
/**
|
* 设置取件码(小件物流)
|
* @param orderId
|
* @param pickUpCode
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil fillInPickUpCode(Integer orderId, String pickUpCode, Integer language) throws Exception;
|
|
|
/**
|
* 司机设置补差价
|
* @param orderId
|
* @param difference
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil makeUpTheDifference(Integer orderId, Double difference, Integer language) throws Exception;
|
|
|
|
/**
|
* 获取司机端首页订单列表
|
* @param driverId
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryOrderList(Integer driverId) throws Exception;
|
|
|
|
/**
|
* 获取司机端我的订单列表
|
* @param state 1=全部,2=待支付,3=已取消
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryMyAllOrder(Integer state, Integer uid) throws Exception;
|
|
|
/**
|
* 抢单操作(车载端)
|
* @param orderId
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil grabOrder_(Integer orderId, Integer uid, Integer language) throws Exception;
|
|
|
|
/**
|
* 获取订单数据
|
* @param state
|
* @param driverId
|
* @return
|
* @throws Exception
|
*/
|
List<OrderLogistics> query(Integer driverId, Integer...state) throws Exception;
|
|
|
/**
|
* 发送验证码
|
* @param orderId
|
* @throws Exception
|
*/
|
void sendVerificationCode(Integer orderId, Integer language) throws Exception;
|
}
|