puzhibing
2023-12-01 ddcef762ff4a159e132c68dfec512c60a68a53e6
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
156
package com.stylefeng.guns.modular.taxi.service;
 
import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.modular.system.util.ResultUtil;
import com.stylefeng.guns.modular.taxi.model.OrderTaxi;
 
import java.util.List;
import java.util.Map;
 
public interface IOrderTaxiService extends IService<OrderTaxi> {
 
    /**
     * 获取司机端首页订单列表
     * @param state     1=服务中,2=待服务(30分钟定义预约)
     * @param driverId
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> queryOrderList(Integer language, Integer state, Integer driverId) throws Exception;
 
 
 
 
    /**
     * 获取司机端我的订单列表
     * @param state     1=全部,2=待支付,3=已取消
     * @param uid
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> queryMyAllOrder(Integer language, Integer state, Integer uid) throws Exception;
 
 
    /**
     * 获取订单数据
     * @param state
     * @param driverId
     * @return
     * @throws Exception
     */
    List<OrderTaxi> query(Integer driverId, Integer...state) throws Exception;
 
 
    /**
     * 获取司机的抢单页面订单详情
     * @param orderId
     * @return
     * @throws Exception
     */
    Map<String, Object> queryPushOrder(Integer language, Integer orderId) throws Exception;
 
 
    /**
     * 抢单操作
     * @param orderId
     * @param uid
     * @return
     * @throws Exception
     */
    ResultUtil grabOrder(Integer orderId, Integer uid) throws Exception;
 
 
 
    /**
     * 抢单操作(车载端)
     * @param orderId
     * @param uid
     * @return
     * @throws Exception
     */
    ResultUtil grabOrder_(Integer orderId, Integer uid) throws Exception;
 
 
    /**
     * 获取订单详情页(服务中的页面)
     * @param orderId
     * @return
     * @throws Exception
     */
    Map<String, Object> queryOrderInfo(Integer language, Integer orderId) throws Exception;
 
 
    /**
     * 走订单流程操作
     * @param orderId
     * @param state
     * @return
     * @throws Exception
     */
    ResultUtil process(Integer orderId, Integer state, Double lon, Double lat, String address) throws Exception;
 
 
    /**
     * 确认费用操作
     * @param orderId
     * @param type
     * @param travelFee
     * @param parkingFee
     * @param crossingFee
     * @return
     * @throws Exception
     */
    ResultUtil confirmFees(Integer orderId, Integer type, Double travelFee, Double parkingFee, Double crossingFee) throws Exception;
 
 
    /**
     * 确认费用(车载端)
     * @param orderId
     * @param type
     * @param travelFee
     * @param lon
     * @param lat
     * @return
     * @throws Exception
     */
    ResultUtil confirmFees_(Integer orderId, Integer type, Double travelFee, Double lon, Double lat, String address) throws Exception;
 
 
    /**
     * 确认费用(车载端)不管之前的数据状态直接修改到待支付状态
     * @param orderId
     * @param type
     * @param travelFee
     * @param lon
     * @param lat
     * @return
     * @throws Exception
     */
    ResultUtil confirmFees$(Integer orderId, Integer type, Double travelFee, Double lon, Double lat, String address) throws Exception;
 
 
 
    /**
     * 计算已服务的实时里程
     * @param orderId
     * @param lon
     * @param lat
     */
    boolean calculateMileage(Integer orderId, String lon, String lat) throws Exception;
 
 
    /**
     * 获取所有快到期的预约单(出行时间在30分钟内)
     * @return
     * @throws Exception
     */
    List<OrderTaxi> queryMaturity() throws Exception;
 
 
    /**
     * 获取订单完成后30分钟的数据
     * @return
     * @throws Exception
     */
    List<OrderTaxi> taskMidAxbUnBindSend() throws Exception;
}