package com.stylefeng.guns.modular.crossCity.dao;
|
|
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
import com.stylefeng.guns.modular.crossCity.model.Line;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
import java.util.Map;
|
|
public interface LineMapper extends BaseMapper<Line> {
|
|
|
/**
|
* 根据站点id获取匹配的线路数据
|
* @param siteId
|
* @param type
|
* @return
|
*/
|
List<Map<String, Object>> queryLines(@Param("siteId") Integer siteId, @Param("type")Integer type);
|
|
|
/**
|
* 根据司机id获取线路
|
* @param driverId
|
* @return
|
*/
|
List<Map<String, Object>> scanCodeQueryLines(@Param("driverId") Integer driverId);
|
|
/**
|
* 根据司机id查询当前时间之后发车的城际线路
|
* @param driverId
|
* @return
|
*/
|
List<Map<String, Object>> queryFutureLinesByDriver(@Param("driverId") Integer driverId);
|
|
/**
|
* 根据线路id查询目的地列表
|
* @param lineId
|
* @return
|
*/
|
List<Map<String, Object>> queryLineDestinations(@Param("lineId") Integer lineId);
|
|
/**
|
* 根据目的地id查询目的地
|
* @param id
|
* @param lineId
|
* @return
|
*/
|
Map<String, Object> queryLineDestinationById(@Param("id") Integer id, @Param("lineId") Integer lineId);
|
|
/**
|
* 根据线路id查询线路包车价格
|
* @param lineId
|
* @return
|
*/
|
Map<String, Object> queryLineCharterPrices(@Param("lineId") Integer lineId);
|
}
|