package cn.iocoder.yudao.module.train.mapper;

import cn.iocoder.yudao.module.train.entity.Train;
import cn.iocoder.yudao.module.train.vo.TrainVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 练车记录 Mapper
 *
 * @author 若依
 */
@Mapper
public interface TrainMapper extends BaseMapper<Train> {

    IPage<TrainVO> queryListPage(@Param("entity") TrainVO entity, Page<TrainVO> page);

    List<TrainVO> selectTrainByCondition(@Param("coachId") Long coachId, @Param("startTime") String startTime, @Param("endTime") String endTime);

    IPage<TrainVO> queryTrainListPage(@Param("entity") TrainVO pageReqVO, @Param("page") Page<TrainVO> page);

    List<TrainVO> listJoinBatchByIds(@Param("trainIds") List<String> trainIds);
}