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.SiteWarpper;
|
|
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 siteId
|
* @param code
|
* @param lonLat
|
* @return
|
* @throws Exception
|
*/
|
boolean areaMonitoring(Integer siteId, String code, String lonLat) throws Exception;
|
}
|