package com.railway.business.baseinfo.mapper;

import com.github.pagehelper.Page;
import com.railway.business.baseinfo.domain.BaseDeptStation;
import com.railway.business.baseinfo.domain.vo.BaseStationQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * primary key (station_id) using btree,
 * index dept_id(dept_id) using btree,
 * index line_id(line_id) using
 *
 * @author railway
 * @date 2021/11/20
 */
@Mapper
@Repository
public interface BaseDeptStationMapper {

  /**
   * 新增
   */
  int insert(BaseDeptStation baseDeptStation);

  /**
   * 删除
   */
  int delete(@Param("stationId") Long stationId);

  /**
   * 获取单个
   */
  BaseDeptStation getInfo(BaseStationQuery query);

  /**
   * 查询列表
   */
  Page<BaseDeptStation> getList(@Param("stationId") Long stationId);

}
