package cn.edu.whu.boot.allocation.mapper;

import cn.edu.whu.boot.allocation.entities.RouteLine;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RouteLineMapper {

    void insert(@Param("databaseName") String databaseName, @Param("routeLine")RouteLine routeLine);

    List<RouteLine> findByName(@Param("databaseName") String databaseName, @Param("name")String name);

    List<RouteLine> findByNameAndTime(@Param("databaseName") String databaseName, @Param("name")String name,
                                   @Param("beginTime") String beginTime, @Param("stopTime") String stopTime);


}
