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.model.vo.UnPayOrderVO; import com.stylefeng.guns.modular.system.util.ResultUtil; import com.stylefeng.guns.modular.system.warpper.*; import com.stylefeng.guns.modular.taxi.model.OrderTaxi; import org.apache.ibatis.annotations.Param; import java.util.Date; import java.util.List; import java.util.Map; public interface IOrderPrivateCarService extends IService { /** * 专车下单操作 * @param serverCarModelId 服务车型id * @param travelTime 出行时间 * @param reservation 是否预约(1=否,2=是) * @param instead 是否代下单(0=否,1=是) * @param startLon 起点经度 * @param startLat 起点纬度 * @param startAddress 起点详细地址 * @param endLon 终点经度 * @param endLat 终点纬度 * @param endAddress 终点详细地址 * @param name 乘客姓名 * @param phone 乘客电话 * @return * @throws Exception */ ResultUtil saveOrderPrivateCar(Integer serverCarModelId, Date travelTime, Integer reservation, Integer instead, String placementLon, String placementLat, String startLon, String startLat, String startAddress, String endLon, String endLat, String endAddress, String name, String phone, Integer orderSource, Integer driverId, Integer type, Integer uid,Integer peopleNum,Integer rideType) throws Exception; ResultUtil saveOrderPrivateCars(String serverCarModel, Date travelTime, Integer reservation, Integer instead, String placementLon, String placementLat, String startLon, String startLat, String startAddress, String endLon, String endLat, String endAddress, String name, String phone, Integer orderSource, Integer driverId, Integer uid,Integer peopleNum) throws Exception; /** * 继续推送操作 * @param id * @throws Exception */ ResultUtil pushOrderPrivateCar(Integer id) throws Exception; /** * 获取取消订单需要支付的金额 * @param id * @return * @throws Exception */ ResultUtil queryCancleAmount(Integer id) 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 id * @return * @throws Exception */ ResultUtil cancleOrderPrivateCar(Integer id, Integer payType, Integer cancleId, Integer type) throws Exception; String getOrderNum() throws Exception; /** * 删除定时任务 * @param orderId */ void deleteTask(Integer orderId); /** * 获取用户余额和可用优惠券数量 * @param uid * @return * @throws Exception */ Map queryBalance(Integer orderId, Integer uid) throws Exception; /** * 获取用户余额和优惠数据 * @param uid * @return * @throws Exception */ PreferentialDataVo queryBalance1(Integer orderId, Integer uid) throws Exception; /** * 获取优惠券列表 * @param orderId * @return * @throws Exception */ List> queryCoupon(Integer orderId, Integer uid, Integer pageNum, Integer size) throws Exception; /** * 获取优惠券和打车卡列表 * @param orderId * @param uid * @param pageNum * @param size * @return * @throws Exception */ List queryCouponList(Integer orderId, Integer uid, Integer pageNum, Integer size) throws Exception; /** * 订单完成支付订单操作 * @param payType * @param orderId * @return * @throws Exception */ ResultUtil payPrivateCarOrder(Integer payType, Integer orderId, Integer couponId, Integer type)throws Exception; /** * 订单完成支付订单操作 * @param payType * @param orderId * @return * @throws Exception */ ResultUtil payPrivateCarOrder1(Integer payType, Integer orderId, Integer objectId, Integer objectType, Integer type, String path, String ip)throws Exception; /** * 评论成功后获取红包金额 * @param orderId * @return * @throws Exception */ ResultUtil 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 payCancelOrderPrivateCar(Integer id, String order_id, Integer type) throws Exception; /** * 支付完成后的订单处理 * @param id 订单=id * @param order_id 工行支付单号 * @param type 1=微信,2=支付宝 * @throws Exception */ void payOrderPrivateCarCallback(Integer id, String order_id, Integer type, String outTradeNo) throws Exception; /** * 获取订单数据 * @param uid * @param state * @return * @throws Exception */ List queryOrder(Integer uid, Integer...state) throws Exception; /** * 获取员工的订单列表 * @param uid * @param pageNum * @param size * @return * @throws Exception */ List> queryMyOrderList(Integer uid, Integer pageNum, Integer size) throws Exception; /** * 获取用户端发票页面中的订单列表数据 * @param type 开票状态(1=未开票,2=已开票) * @param startTime 订单开始时间 * @param endTime 订单结束时间 * @param startMoney 订单金额范围 * @param endMoney * @param uid * @return * @throws Exception */ List> queryInvoiceOrder(Integer type, Date startTime, Date endTime, Double startMoney, Double endMoney, Integer uid) throws Exception; /** * 获取订单详情 * @param orderId * @return */ Map queryOrderInfo(Integer uid, Integer orderId) throws Exception; /** * 获取历史消费记录 * @param uid * @return * @throws Exception */ List> queryMyTravelRecord(Integer uid) throws Exception; /** * 获取服务中的订单数据 * @param uid * @return * @throws Exception */ OrderServerWarpper queryOrderServer(Integer orderId, Integer uid) throws Exception; /** * 获取下单推送完后没有司机下单的提醒 * @param uid * @return * @throws Exception */ EndPushWarpper queryEndPush(Integer uid) throws Exception; /** * 获取红包使用记录 * @param uid * @return * @throws Exception */ List> queryRedEnvelope(Integer uid) throws Exception; /** * 支付感谢费 * @param uid * @param orderId * @param money * @param payType * @return * @throws Exception */ ResultUtil payThankYouFee(Integer uid, Integer orderId, Double money, Integer payType, Integer type) throws Exception; /** * 感谢费支付回调处理 * @param orderId * @param order_id * @throws Exception */ void payThankYouFeeCallback(Integer orderId, String order_id, Integer payType) throws Exception; /** * 获取订单详情页(服务中的页面) * @param orderId * @return */ List> queryOrderInfo2(@Param("orderId") Integer orderId, @Param("state") Integer state, @Param("lon") String lon, @Param("lat") String lat); /** * 获取专车未支付的订单 */ List getUnpayPrivateOrders(Integer uid); /** * 添加申诉 */ void addAppeal(Integer uid, Integer orderId,String abnormalIntro, String abnormalImg); void promotion(Integer orderId); List> queryMyTripList(Integer uid, Integer pageNum, Integer size) throws Exception; List> queryMyTripListAll(Integer uid) throws Exception; }