package com.agentdriving.user.modular.system.service;
|
|
import com.agentdriving.user.modular.system.model.Order;
|
import com.agentdriving.user.modular.system.warpper.*;
|
import com.baomidou.mybatisplus.service.IService;
|
import com.agentdriving.user.modular.system.util.ResultUtil;
|
import com.agentdriving.user.modular.system.warpper.*;
|
|
import java.util.List;
|
|
|
/**
|
* 订单
|
* @author pzb
|
* @Date 2023/2/16 15:47
|
*/
|
public interface IOrderService extends IService<Order> {
|
|
|
/**
|
* 获取预估费用
|
* @param uid
|
* @param estimatedCosts
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil<EstimatedCostsWarpper> getEstimatedCosts(Integer uid, EstimatedCosts estimatedCosts) throws Exception;
|
|
|
/**
|
* 下单操作
|
* @param uid
|
* @param travelOrder
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil travelOrder(Integer uid, TravelOrder travelOrder) throws Exception;
|
|
|
/**
|
* 取消订单
|
* @param uid
|
* @param orderId
|
* @param cause
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil cancelOrder(Integer uid, Long orderId, String cause) throws Exception;
|
|
|
/**
|
* 获取订单详情
|
* @param uid
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
OrderInfoWarpper queryOrderInfo(Integer uid, Long orderId) throws Exception;
|
|
|
/**
|
* 修改订单终点
|
* @param uid
|
* @param editOrderEndAddress
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil editOrderEndAddress(Integer uid, EditOrderEndAddress editOrderEndAddress) throws Exception;
|
|
|
/**
|
* 获取订单费用明细
|
* @param uid
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
OrderPriceWarpper queryOrderPrice(Integer uid, Long orderId) throws Exception;
|
|
|
/**
|
* 重新计算费用明细
|
* @param orderId
|
* @param couponId
|
* @param payType
|
* @param balance
|
* @return
|
* @throws Exception
|
*/
|
OrderPriceWarpper calculationOfExpenses(Integer uid, Long orderId, Integer couponId, Integer payType, Double balance) throws Exception;
|
|
|
|
/**
|
* 获取支付页面的可用优惠券列表
|
* @param uid
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
List<CouponWarpper> queryPayCouponList(Integer uid, Long orderId) throws Exception;
|
|
|
/**
|
* 支付订单操作
|
* @param uid
|
* @param orderPayment
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil orderPayment(Integer uid, OrderPayment orderPayment) throws Exception;
|
|
|
/**
|
* 订单微信支付回调
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil orderPayCallback(String orderId, String transaction_id) throws Exception;
|
|
|
/**
|
* 订单评价
|
* @param uid
|
* @param orderId
|
* @param score
|
* @param content
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil orderAppraise(Integer uid, Long orderId, Integer score, String content) throws Exception;
|
|
|
/**
|
* 获取用户行程记录
|
* @param uid
|
* @param pageNum
|
* @param pageSize
|
* @return
|
* @throws Exception
|
*/
|
List<OrderListWarpper> queryMyOrder(Integer uid, Integer pageNum, Integer pageSize) throws Exception;
|
|
|
/**
|
* 获取未开票订单
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
List<OrderListWarpper> queryNotInvoiceOrder(Integer uid, NotInvoiceOrder notInvoiceOrder) throws Exception;
|
|
|
}
|