puzhibing
2023-05-22 92487fe61cddbc791de1215d58ae53e8bef54c5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
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;
 
 
}