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;
|
}
|