Pu Zhibing
1 天以前 052a3249c21c76435e2af5e76036e3c503d12218
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
package com.stylefeng.guns.modular.system.service;
 
import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.modular.system.model.Driver;
import com.stylefeng.guns.modular.system.util.ResultUtil;
import com.stylefeng.guns.modular.system.warpper.ActivityWarpper;
import com.stylefeng.guns.modular.system.warpper.BaseWarpper;
import com.stylefeng.guns.modular.system.warpper.LoginWarpper;
import com.stylefeng.guns.modular.system.warpper.RegisteredWarpper;
 
import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.List;
import java.util.Map;
 
public interface IDriverService extends IService<Driver> {
 
    /**
     * 获取短信验证码
     * @param phone
     * @return
     */
    ResultUtil queryCaptcha(String phone, Integer type) throws Exception;
 
 
    /**
     * 验证短信验证码
     * @param phone
     * @param code
     * @return
     * @throws Exception
     */
    boolean checkCaptcha(String phone, String code) throws Exception;
 
 
    /**
     * 司机提交注册申请
     * @throws Exception
     */
    ResultUtil registeredDriver(String phone, String code, String password, Integer uid, Integer type, Integer userType) throws Exception;
 
 
    /**
     * 司机注册
     * @param phone
     * @param code
     * @param password
     * @return
     * @throws Exception
     */
    ResultUtil<LoginWarpper> registeredDriver(String phone, String code, String password) throws Exception;
 
 
    /**
     * 根据城市code获取是否需要网约车资格证
     * @param code
     * @return
     * @throws Exception
     */
    Integer queryNeedCertificate(String code) throws Exception;
 
 
    /**
     * 完善个人信息
     * @param registeredWarpper
     * @return
     * @throws Exception
     */
    ResultUtil updateDriver(RegisteredWarpper registeredWarpper, Integer uid) throws Exception;
 
 
 
    /**
     * 重置密码
     * @param phone
     * @param code
     * @param password
     * @return
     * @throws Exception
     */
    ResultUtil resetPassword(String phone, String code, String password) throws Exception;
 
 
    /**
     * 根据定位的城市行政编号获取分公司的客服电话
     * @param code
     * @return
     * @throws Exception
     */
    Map<String, Object> queryPhone(String code) throws Exception;
 
 
    /**
     * 司机登录
     * @param phone
     * @param password
     * @return
     * @throws Exception
     */
    ResultUtil<LoginWarpper> driverLogin(String phone, String password) throws Exception;
 
 
    /**
     * 获取首页统计数据
     * @param uid
     * @return
     * @throws Exception
     */
    Map<String, Object> queryHomeData(Integer uid) throws Exception;
 
 
    /**
     * 从redis中获取用户id
     * @param request
     * @return
     * @throws Exception
     */
    Integer getUserIdFormRedis(HttpServletRequest request) throws Exception;
 
 
    /**
     * 上下班操作
     * @param uid
     * @return
     * @throws Exception
     */
    ResultUtil work(Integer uid, String type) throws Exception;
 
 
 
    /**
     * 上下班操作
     * @param uid
     * @return
     * @throws Exception
     */
    ResultUtil work2(Integer uid, String type) throws Exception;
 
 
    /**
     * 获取首页统计数据
     * @param uid
     * @return
     * @throws Exception
     */
    Map<String, Object> queryHomeNum(Integer uid) throws Exception;
 
 
    /**
     * 获取司机的业务类型
     * @param uid
     * @return
     * @throws Exception
     */
    List<BaseWarpper> queryMyBusiness(Integer uid) throws Exception;
 
 
    /**
     * 获取个人中心详情
     * @param uid
     * @return
     * @throws Exception
     */
    Map<String, Object> queryInfo(Integer uid) throws Exception;
 
 
    /**
     * 修改手机号码
     * @param phone
     * @param code
     * @param uid
     * @return
     * @throws Exception
     */
    ResultUtil updatePhone(String phone, String code, Integer uid) throws Exception;
 
 
    /**
     * 电话号码查询司机
     * @param phone
     * @return
     * @throws Exception
     */
    Driver queryByPhone(String phone) throws Exception;
 
 
    /**
     * 修改密码
     * @param password
     * @param uid
     * @throws Exception
     */
    void updatePassword(String password, Integer uid) throws Exception;
 
 
    /**
     * 更换车辆
     * @param carId
     * @param uid
     * @return
     * @throws Exception
     */
    ResultUtil replaceCar(Integer carId, Integer uid) throws Exception;
 
 
    /**
     * 获取客服电话
     * @param uid
     * @return
     * @throws Exception
     */
    Map<String, Object> queryPhone(Integer uid) throws Exception;
 
 
    /**
     * 获取处罚历史数据
     * @param pageNum
     * @param size
     * @param uid
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> queryPenalties(Integer pageNum, Integer size, Integer uid) throws Exception;
 
 
    /**
     * 获取活动奖励列表
     * @param uid
     * @param pageNum
     * @param size
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> queryActivityIncome(Integer uid, Integer pageNum, Integer size) throws Exception;
 
 
    /**
     * 获取历史总收入(业务)
     * @param uid
     * @param pageNum
     * @param size
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> queryTotalRevenue(Integer uid, Integer pageNum, Integer size) throws Exception;
 
 
    /**
     * 获取当天有效的活动
     * @param uid
     * @return
     * @throws Exception
     */
    List<ActivityWarpper> queryMyActivity(Integer uid, Date time) throws Exception;
 
 
    /**
     * 获取历史活动
     * @param uid
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> queryHistory(Integer uid, Integer pageNum, Integer size) throws Exception;
 
 
    /**
     * 给所有司机添加当天有效的活动数据
     * @throws Exception
     */
    void addTodayActivity() throws Exception;
 
 
    /**
     * 每分钟执行的定时任务
     * @throws Exception
     */
    void taskMinute() throws Exception;
 
 
    /**
     * 使用工号登录
     * @param jobNum
     * @return
     */
    ResultUtil loginByJobNumber(String jobNum);
 
 
    /**
     * 获取上班中的司机
     * @return
     * @throws Exception
     */
    List<Driver> queryWorkDriver() throws Exception;
 
 
    /**
     * 身份证号码登录
     * @param identification
     * @return
     * @throws Exception
     */
    ResultUtil loginByIdentification(String identification) throws Exception;
 
 
    /**
     * 出租车资格证号码登录
     * @param taxiAptitudeCard
     * @return
     * @throws Exception
     */
    ResultUtil loginByTaxiAptitudeCard(String taxiAptitudeCard) throws Exception;
 
 
    /**
     * 定时下班操作
     * @throws Exception
     */
    void taskOffWork() throws Exception;
 
 
    /**
     * 验证登录密码是否有效
     * @param password
     * @param driverId
     * @return
     * @throws Exception
     */
    ResultUtil verificationPassword(String password, Integer driverId) throws Exception;
 
 
    /**
     * 设置提现密码
     * @param withdrawPassword
     * @param driverId
     * @return
     * @throws Exception
     */
    ResultUtil setWithdrawPassword(String withdrawPassword, Integer driverId) throws Exception;
 
 
    /**
     * 验证提现密码是否有效
     * @param withdrawPassword
     * @param driverId
     * @return
     * @throws Exception
     */
    ResultUtil verificationWithdrawPassword(String withdrawPassword, Integer driverId) throws Exception;
 
 
    /**
     * 退出登录
     * @param id
     * @return
     * @throws Exception
     */
    ResultUtil loginOut(Integer id) throws Exception;
}