zhibing.pu
2024-08-01 656ac293601d6da08d25e892a79604fe3edcd086
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
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
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.*;
import org.apache.ibatis.annotations.Param;
 
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, Integer language) throws Exception;
 
 
    /**
     * 获取邮件验证码
     * @param email
     * @return
     * @throws Exception
     */
    ResultUtil queryEmailCaptcha(String email, Integer language) throws Exception;
 
 
    /**
     * 验证短信验证码
     * @param phone
     * @param code
     * @return
     * @throws Exception
     */
    boolean checkCaptcha(String email, String phone, String code) throws Exception;
 
 
    /**
     * 司机提交注册申请
     * @throws Exception
     */
    ResultUtil registeredDriver(String phoneOperator, String phone, String code, String password, Integer uid, Integer type, Integer userType, Integer language) throws Exception;
 
 
 
    ResultUtil registeredDriver1(String phoneOperator, String phone, String code, String password, Integer uid, Integer type, Integer userType, Integer language) throws Exception;
 
 
 
    /**
     * 司机注册
     * @param phone
     * @param code
     * @param password
     * @param uid
     * @param uType
     * @return
     * @throws Exception
     */
    ResultUtil<LoginWarpper> registeredDriver(String phoneOperator, String phone, String code, String password,Integer uid,Integer uType, Integer language) 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, Integer language) throws Exception;
 
 
 
    /**
     * 重置密码
     * @param phone
     * @param code
     * @param password
     * @return
     * @throws Exception
     */
    ResultUtil resetPassword(String phone, String code, String password, Integer language) throws Exception;
 
 
    /**
     * 根据定位的城市行政编号获取分公司的客服电话
     * @param code
     * @return
     * @throws Exception
     */
    Map<String, Object> queryPhone(Double lat, Double lnt) throws Exception;
 
 
    /**
     * 司机登录
     * @param phone
     * @param password
     * @return
     * @throws Exception
     */
    ResultUtil<LoginWarpper> driverLogin(String phone, String password, Integer language) throws Exception;
 
 
    /**
     * 获取首页统计数据
     * @param uid
     * @return
     * @throws Exception
     */
    Map<String, Object> queryHomeData(Integer uid, Integer language) 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, Integer language) throws Exception;
 
 
 
    /**
     * 上下班操作
     * @param uid
     * @return
     * @throws Exception
     */
    ResultUtil work2(Integer uid, String type, Integer language) throws Exception;
 
 
    /**
     * 获取首页统计数据
     * @param uid
     * @return
     * @throws Exception
     */
    Map<String, Object> queryHomeNum(Integer uid, Integer language) throws Exception;
 
 
    /**
     * 获取司机的业务类型
     * @param uid
     * @return
     * @throws Exception
     */
    List<BaseWarpper> queryMyBusiness(Integer uid, Integer language) throws Exception;
 
 
    /**
     * 获取个人中心详情
     * @param uid
     * @return
     * @throws Exception
     */
    Map<String, Object> queryInfo(Integer language, Integer uid) throws Exception;
 
 
    /**
     * 修改手机号码
     * @param phone
     * @param code
     * @param uid
     * @return
     * @throws Exception
     */
    ResultUtil updatePhone(String phoneOperator, String phone, String code, Integer uid, Integer language) throws Exception;
 
 
    /**
     * 修改语言设置
     * @param language
     * @param uid
     * @throws Exception
     */
    void editLanguage(Integer language, 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, Integer language) throws Exception;
 
 
    /**
     * 更换车辆
     * @param carId
     * @param uid
     * @return
     * @throws Exception
     */
    ResultUtil replaceCar(Integer carId, Integer uid, Integer language) 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 language, Integer pageNum, Integer size, Integer uid) throws Exception;
 
 
    /**
     * 获取列表
     * @param uid
     * @param pageNum
     * @param size
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> queryActivityIncome(Integer language, Integer uid, Integer pageNum, Integer size) throws Exception;
 
 
    /**
     * 获取历史总收入(业务)
     * @param uid
     * @param pageNum
     * @param size
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> queryTotalRevenue(Integer language, Integer uid, Integer pageNum, Integer size) throws Exception;
 
 
    /**
     * 获取当天有效的活动
     * @param uid
     * @return
     * @throws Exception
     */
    List<ActivityWarpper> queryMyActivity(Integer uid, Date time, Integer language) throws Exception;
 
 
    /**
     * 获取历史活动
     * @param uid
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> queryHistory(Integer language, 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, Integer language);
 
 
    /**
     * 获取上班中的司机
     * @return
     * @throws Exception
     */
    List<Driver> queryWorkDriver() throws Exception;
 
 
    /**
     * 身份证号码登录
     * @param identification
     * @return
     * @throws Exception
     */
    ResultUtil loginByIdentification(String identification, Integer language) throws Exception;
 
 
    /**
     * 出租车资格证号码登录
     * @param taxiAptitudeCard
     * @return
     * @throws Exception
     */
    ResultUtil loginByTaxiAptitudeCard(String taxiAptitudeCard, Integer language) throws Exception;
 
 
    /**
     * 定时下班操作
     * @throws Exception
     */
    void taskOffWork() throws Exception;
 
 
    /**
     * 验证登录密码是否有效
     * @param password
     * @param driverId
     * @return
     * @throws Exception
     */
    ResultUtil verificationPassword(String password, Integer driverId, Integer language) throws Exception;
 
 
    /**
     * 设置提现密码
     * @param withdrawPassword
     * @param driverId
     * @return
     * @throws Exception
     */
    ResultUtil setWithdrawPassword(String withdrawPassword, Integer driverId, Integer language) throws Exception;
 
 
    /**
     * 验证提现密码是否有效
     * @param withdrawPassword
     * @param driverId
     * @return
     * @throws Exception
     */
    ResultUtil verificationWithdrawPassword(String withdrawPassword, Integer driverId, Integer language) throws Exception;
 
 
    /**
     * 退出登录
     * @param id
     * @return
     * @throws Exception
     */
    ResultUtil loginOut(Integer id) throws Exception;
 
    /**
     * 查询司机的邀请列表
     * @author yxh
     * @date 2021/3/27 10:18
     * @param type
     * @param uid
     * @param pageNum
     * @param size
     * @return java.util.List<Map<String,Object>>
     */
    List<Map<String,Object>> queryMyInviteList(Integer language, Integer type,Integer uid, Integer pageNum, Integer size) throws Exception;
 
    /**
     *
     * @param type
     * @return
     */
    Integer getAppOpenInfo(@Param("type") Integer type);
 
 
    /**
     * 获取提现规则
     * @return
     */
    Integer getWithdrawalRule();
 
 
    /**
     * 获取司机在线时长
     * @param driverId
     * @param type 1=今日,2=本周,3=本月
     * @return
     */
    Integer getDriverOnlineTime(@Param("driverId") Integer driverId,@Param("type") Integer type);
 
    /**
     * 获取这周司机的收益
     * @param driverId
     * @return
     */
    Double getThisWeekMoney(@Param("driverId") Integer driverId);
    
    
    /**
     * 获取给定车型且空闲的司机
     * @param type
     * @param serverCarModelId
     * @param lon
     * @param lat
     * @param distance
     * @param companyId
     * @return
     * @throws Exception
     */
    List<Driver> queryIdleDriver(Integer type, Integer serverCarModelId, Double lon, Double lat, Double distance, Integer companyId) throws Exception;
}