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
| 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.warpper.BaseWarpper;
|
| import java.util.List;
| import java.util.Map;
|
| public interface IDriverService extends IService<Driver> {
|
|
| /**
| * 获取distance公里内空闲司机数量
| * @param type
| * @param lon
| * @param lat
| * @return
| * @throws Exception
| */
| List<Driver> queryIdleDriver(Integer type, Double lon, Double lat, Double distance, Integer companyId) throws Exception;
| List<Driver> queryIdleDriverAll(Integer type, Double lon, Double lat, Double distance, Integer companyId) throws Exception;
| List<Driver> queryIdleDriverAllCall(Integer type, Double lon, Double lat, Double distance, List<Integer> companyIds) throws Exception;
|
|
| /**
| * 获取给定车型且空闲的司机
| * @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;
|
|
| /**
| * 根据订单id获取司机数据
| * @param orderId
| * @return
| * @throws Exception
| */
| Map<String, Object> queryOrderDriver(Integer orderId, Integer orderType) throws Exception;
|
|
| /**
| * 获取司机详情
| * @param id
| * @return
| * @throws Exception
| */
| Map<String, Object> queryDriverInfo(Integer id) throws Exception;
|
|
| /**
| * 获取司机的业务类型
| * @param uid
| * @return
| * @throws Exception
| */
| List<BaseWarpper> queryBusiness(Integer uid) throws Exception;
| }
|
|