xuhy
2024-05-28 5470d21a35286abe41fafc25a7deaabefd7c55da
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
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 java.util.List;
import java.util.Map;
 
public interface IDriverService extends IService<Driver> {
 
 
    /**
     * 获取预约了改班次的司机列表
     * @param lineShiftId
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> queryLineShiftDriver(Integer lineShiftId, String time, Integer lineShiftDriverId, Integer driverId) throws Exception;
 
 
    /**
     * 获取没有预约给定日期班次的司机
     * @param lineShiftId
     * @param time
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> queryNotInLineShiftDriver(Integer lineShiftId, String time) throws Exception;
 
 
    /**
     * 调度端帮司机进行预约排班数据
     * @param lineShiftId
     * @param time
     * @param driverId
     * @return
     * @throws Exception
     */
    ResultUtil addDriverForLineShift(Integer lineShiftId, String time, Integer driverId) throws Exception;
 
 
    /**
     * 获取改派司机列表
     * @param reassignId
     * @param uid
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> queryReassignDriver(Integer reassignId, Integer uid) throws Exception;
 
 
    /**
     * 重新绑定/解绑 车辆司机关系
     * @param uid
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> queryAllDriver(Integer uid) throws Exception;
 
 
    /**
     * 根据车辆id获取司机
     * @param carId
     * @return
     * @throws Exception
     */
    List<Driver> queryByCarId(Integer carId) throws Exception;
}