package com.stylefeng.guns.modular.specialTrain.server;
|
|
import com.baomidou.mybatisplus.service.IService;
|
import com.stylefeng.guns.modular.specialTrain.model.OrderPrivateCar;
|
import com.stylefeng.guns.modular.system.util.ResultUtil;
|
import com.stylefeng.guns.modular.system.warpper.BaseWarpper;
|
import com.stylefeng.guns.modular.taxi.model.OrderTaxi;
|
|
import java.util.Date;
|
import java.util.List;
|
import java.util.Map;
|
|
public interface IOrderPrivateCarService extends IService<OrderPrivateCar> {
|
|
|
/**
|
* 获取司机端首页订单列表
|
* @param state 1=服务中,2=待服务(30分钟定义预约)
|
* @param driverId
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryOrderList(Integer state, Integer driverId, Integer language) throws Exception;
|
|
|
|
|
/**
|
* 获取司机端我的订单列表
|
* @param state 1=全部,2=待支付,3=已取消
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryMyAllOrder(Integer state, Integer uid, Integer language) throws Exception;
|
|
|
|
|
/**
|
* 获取司机的抢单页面订单详情
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryPushOrder(Integer orderId, Integer language) 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,String phone, Integer language) throws Exception;
|
|
|
/**
|
* 确认费用操作
|
* @param orderId
|
* @param type
|
* @param parkingFee
|
* @param crossingFee
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil confirmFees(Integer orderId, Integer type, Double parkingFee, Double crossingFee) throws Exception;
|
|
|
/**
|
* 获取费用明细
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryMoneyInfo(Integer orderId) throws Exception;
|
|
|
/**
|
* 计算已服务的实时里程
|
* @param orderId
|
* @param lon
|
* @param lat
|
*/
|
boolean calculateMileage(Integer orderId, String lon, String lat) throws Exception;
|
|
|
/**
|
* 获取订单数据
|
* @param state
|
* @param driverId
|
* @return
|
* @throws Exception
|
*/
|
List<OrderPrivateCar> query(Integer driverId, Integer...state) throws Exception;
|
|
|
/**
|
* 获取订单完成后30分钟的数据
|
* @return
|
*/
|
List<OrderPrivateCar> taskMidAxbUnBindSend();
|
|
List<OrderPrivateCar> getSmsOrderList();
|
|
|
|
/**
|
* 支付完成后的订单处理
|
* @param id 订单=id
|
* @param order_id 工行支付单号
|
* @throws Exception
|
*/
|
void payOrderPrivateCarCallback(Integer id, String order_id, Integer language) throws Exception;
|
}
|