package bus.mapper;

import bus.model.dto.BStationInfoDto;
import bus.model.dto.page.BCourseInfoPageDto;
import bus.model.vo.BCourseInfoVo;
import bus.model.po.*;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Program: bus
 * @Description: 描述
 * @Author: zy
 * @Date: 2025-03-02 19:53:49
 **/
@Mapper
public interface BCourseInfoMapper extends BaseMapper<BCourseInfoPo> {

    List<BCourseInfoVo> list(BCourseInfoPageDto dto);

    List<BStationInfoDto> findNearbyStations(@Param("longitude") BigDecimal longitude,
                                             @Param("latitude") BigDecimal latitude,
                                             @Param("distance") Integer distance);
    List<BCourseInfoVo> findRoutesByStations(@Param("stationIds") List<Long> stationIds);
}
