package com.stylefeng.guns.modular.crossCity.server;
|
|
import com.baomidou.mybatisplus.service.IService;
|
import com.stylefeng.guns.modular.crossCity.model.OrderCrossCity;
|
import com.stylefeng.guns.modular.crossCity.warpper.OrderCrossCityWarpper;
|
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.system.warpper.OrderServerWarpper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.Date;
|
import java.util.List;
|
import java.util.Map;
|
|
public interface IOrderCrossCityService extends IService<OrderCrossCity> {
|
|
|
/**
|
* 计算支付金额
|
* @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;
|
|
|
|
|
/**
|
* 获取用户余额和可用优惠券数量
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryBalance(Integer orderId, Integer uid) throws Exception;
|
|
|
|
|
/**
|
* 获取优惠券列表
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryCoupon(Integer language, Integer orderId, Integer uid, Integer pageNum, Integer size) throws Exception;
|
|
|
|
/**
|
* 订单完成支付订单操作
|
* @param payType
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil payCrossCityOrder(Integer payType, Integer orderId, Integer couponId, Integer type, Integer language)throws Exception;
|
|
|
|
/**
|
* 支付完成后的订单处理
|
* @param id 订单=id
|
* @param order_id 工行支付单号
|
* @param type 1=微信,2=支付宝
|
* @throws Exception
|
*/
|
void payOrderCrossCityCallback(Integer id, String order_id, Integer type) throws Exception;
|
|
|
/**
|
* 用户跨城下单操作
|
* @param orderCrossCityWarpper
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil<BaseWarpper> orderCrossCity(OrderCrossCityWarpper orderCrossCityWarpper, Integer uid) throws Exception;
|
|
|
|
|
/**
|
* 获取订单数据
|
* @param uid
|
* @param state
|
* @return
|
* @throws Exception
|
*/
|
List<OrderCrossCity> queryOrder(Integer uid, Integer...state) throws Exception;
|
|
|
|
/**
|
* 获取订单详情
|
* @param orderId
|
* @return
|
*/
|
Map<String, Object> queryOrderInfo(Integer language, Integer orderId) throws Exception;
|
|
|
|
/**
|
* 获取取消订单需要支付的金额
|
* @param id
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil<BaseWarpper> queryCancleAmount(Integer id) throws Exception;
|
|
|
|
/**
|
* 取消订单操作
|
* @param id
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil cancleOrderCrossCity(Integer id, Integer payType, Integer cancleId, Integer type, Integer language) throws Exception;
|
|
|
/**
|
* 删除定时任务
|
* @param orderId
|
* @throws Exception
|
*/
|
void deleteTask(Integer orderId) throws Exception;
|
|
|
|
/**
|
* 评论成功后获取红包金额
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil<BaseWarpper> queryRedMoney(Integer orderId) throws Exception;
|
|
|
/**
|
* 分享成功后添加红包
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil shareRedEnvelope(Integer orderId) throws Exception;
|
|
|
|
/**
|
* 取消订单支付后的处理
|
* @param id 订单=id
|
* @param order_id 工行支付单号
|
* @param type 1=微信,2=支付宝
|
* @throws Exception
|
*/
|
void payCancelOrderCrossCity(Integer id, String order_id, Integer type) throws Exception;
|
|
|
|
/**
|
* 获取员工的订单列表
|
* @param uid
|
* @param pageNum
|
* @param size
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryMyOrderList(Integer language, Integer uid, Integer pageNum, Integer size) throws Exception;
|
|
|
|
/**
|
* 获取历史消费记录
|
* @param uid
|
* @return
|
*/
|
List<Map<String, Object>> queryMyTravelRecord(Integer language, @Param("uid") Integer uid);
|
|
|
|
/**
|
* 获取用户端发票页面中的订单列表数据
|
* @param type 开票状态(1=未开票,2=已开票)
|
* @param startTime 订单开始时间
|
* @param endTime 订单结束时间
|
* @param startMoney 订单金额范围
|
* @param endMoney
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryInvoiceOrder(Integer language, Integer type, Date startTime, Date endTime, Double startMoney,
|
Double endMoney, Integer uid) throws Exception;
|
|
|
|
/**
|
* 添加取消
|
* @param id
|
* @param reason
|
* @param remark
|
* @param uid
|
* @throws Exception
|
*/
|
ResultUtil addCancle(Integer id, String reason, String remark, Integer uid) throws Exception;
|
|
|
|
/**
|
* 获取红包使用记录
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryRedEnvelope(Integer language, Integer uid) throws Exception;
|
|
|
|
/**
|
* 获取服务中的订单数据
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
OrderServerWarpper queryOrderServer(Integer orderId, Integer uid) throws Exception;
|
|
|
/**
|
* 摆渡下单
|
* @param serverCarModelIds
|
* @param travelTime
|
* @param placementLon
|
* @param placementLat
|
* @param startLon
|
* @param startLat
|
* @param startAddress
|
* @param endLon
|
* @param endLat
|
* @param endAddress
|
* @return
|
*/
|
ResultUtil<BaseWarpper> saveOrderFerry(String serverCarModelIds, Date travelTime, String placementLon, String placementLat, String startLon,
|
String startLat, String startAddress, String endLon, String endLat, String endAddress,
|
Integer crossCityOrderId, Integer place, Integer orderSource, Integer uid) throws Exception;
|
|
|
|
void pushOrder(List<Map<String, Integer>> list) throws Exception;
|
|
|
|
List<OrderCrossCity> queryListOrder(Integer driverId, Integer lineShiftId, List<Integer> state, String day) throws Exception;
|
}
|