package com.stylefeng.guns.modular.crossCity.server;
|
|
import com.baomidou.mybatisplus.service.IService;
|
import com.stylefeng.guns.modular.crossCity.model.LineSite;
|
import com.stylefeng.guns.modular.crossCity.warpper.LocationWarpper;
|
import com.stylefeng.guns.modular.crossCity.warpper.SiteWarpper;
|
import com.stylefeng.guns.modular.system.util.ResultUtil;
|
|
import java.util.List;
|
import java.util.Map;
|
|
public interface ILineSiteService extends IService<LineSite> {
|
|
|
/**
|
* 根据线路获取排班数据
|
* @param lineId
|
* @param day
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryDriver(Integer lineId, String day, Integer driverId) throws Exception;
|
|
|
/**
|
* 根据司机排班数据id获取数据(剩余座位号和总座位数)
|
* @param id
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> querySeat(Integer id) throws Exception;
|
|
|
/**
|
* 获取线路班次及司机预约情况
|
* @param lineId
|
* @param time
|
* @param driverId
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryLineShiftInfo(Integer lineId, String time, Integer driverId) throws Exception;
|
|
|
|
/**
|
* 获取所有站点
|
* @return
|
* @throws Exception
|
*/
|
List<SiteWarpper> querySite(Integer startSiteId) throws Exception;
|
|
|
|
/**
|
* 根据站点获取地点区域数据
|
* @param siteId
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryLocation(Integer siteId) throws Exception;
|
|
/**
|
* 根据司机自主行程获取上下车点区域范围
|
* @param driverId 当前司机id
|
* @param lineShiftDriverId 司机排班记录id
|
* @param type 类型(1=上车点,2=下车点)
|
* @return 区域范围
|
* @throws Exception
|
*/
|
ResultUtil<List<LocationWarpper>> querySelfLocation(Integer driverId, Integer lineShiftDriverId, Integer type) throws Exception;
|
|
/**
|
* 判断一个点是否在自主行程电子围栏内
|
* @param driverId 当前司机id
|
* @param lineShiftDriverId 司机排班记录id
|
* @param type 类型(1=上车点,2=下车点)
|
* @param lonLat 经纬度
|
* @return 是否在围栏内
|
* @throws Exception
|
*/
|
boolean selfAreaMonitoring(Integer driverId, Integer lineShiftDriverId, Integer type, String lonLat) throws Exception;
|
|
|
/**
|
* 判断坐标点是否在站点范围内
|
* @param siteId
|
* @param code
|
* @param lonLat
|
* @return
|
* @throws Exception
|
*/
|
boolean areaMonitoring(Integer siteId, Integer code, String lonLat) throws Exception;
|
}
|