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;
|
|
|
/**
|
* 获取给定车型且空闲的司机
|
* @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;
|
}
|