package com.stylefeng.guns.modular.system.service;
|
|
import com.baomidou.mybatisplus.service.IService;
|
import com.stylefeng.guns.modular.system.model.OrderCrossCity;
|
import com.stylefeng.guns.modular.system.util.ResultUtil;
|
import com.stylefeng.guns.modular.system.warpper.BaseWarpper;
|
import com.stylefeng.guns.modular.system.warpper.OrderCrossCityWarpper;
|
|
import java.util.Date;
|
import java.util.List;
|
import java.util.Map;
|
|
public interface IOrderCrossCityService extends IService<OrderCrossCity> {
|
|
/**
|
* 获取订单列表
|
* @param search
|
* @param orderSource
|
* @param state
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryOrderList(String search, String orderSource, String state, String lineId, Integer pageNum, Integer size, Integer uid) throws Exception;
|
|
|
/**
|
* 获取订单详情
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryOrderInfo(Integer orderId) throws Exception;
|
|
/**
|
* 取消订单
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil cancelOrder(Integer orderId) throws Exception;
|
|
|
|
|
/**
|
* 跨城下单操作
|
* @param orderCrossCityWarpper
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil<BaseWarpper> orderCrossCity(OrderCrossCityWarpper orderCrossCityWarpper, Integer uid) throws Exception;
|
|
|
/**
|
* 获取给定时间范围内的有效订单
|
* @param driverId
|
* @param start
|
* @param end
|
* @return
|
* @throws Exception
|
*/
|
List<OrderCrossCity> queryByDriverId(Integer driverId, Date start, Date end, Integer...state) throws Exception;
|
|
|
/**
|
* 获取排班id对应的订单
|
* @param lineShiftDriverId
|
* @param state
|
* @return
|
* @throws Exception
|
*/
|
List<OrderCrossCity> queryByLineShiftDriverId(Integer lineShiftDriverId, Integer...state) throws Exception;
|
|
|
/**
|
* 扫码支付回调处理
|
* @param orderId 订单id
|
* @param order_id 工行订单号
|
* @throws Exception
|
*/
|
void generatePayCallback(Integer orderId, String order_id) throws Exception;
|
|
|
|
String getOrderNum(Integer driverId, Integer lineShiftDriverId) throws Exception;
|
|
|
|
/**
|
* 计算支付金额
|
* @param startLonLat
|
* @param endLonLat
|
* @param peopleNumber
|
* @param travelMode
|
* @param lineId
|
* @param serverCarModelId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil queryOrderMoney(String startLonLat, String endLonLat, Integer peopleNumber, Integer travelMode, Integer lineId,
|
Integer serverCarModelId, Integer totalSeat, String seatNumber) throws Exception;
|
|
|
|
List<OrderCrossCity> queryListOrder(Integer driverId, Integer lineShiftId, List<Integer> state, String day) throws Exception;
|
}
|