package com.testor.module.train.paper.dao;

import com.testor.module.train.paper.model.domain.TTrainPaper;
import com.tongtech.tfw.backend.common.models.supers.SuperDao;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 试卷管理——安全教育培训Mapper接口
 *
 * @author testor-framework
 * @date 2022-07-13 15:25:11
 */
public interface TTrainPaperDao extends SuperDao<TTrainPaper>
{

    @Select("select * from t_train_paper\n" +
            "where id in(\n" +
            "select paper_id from t_train_examination_manage\n" +
            "where id = #{examinationManageId}\n" +
            ")")
    List<TTrainPaper> selectByExaminationManageId(@Param("examinationManageId") String examinationManageId);


}
