<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.yida.data.school.exam.mapper.CoreExaminationCourseMapper">
    <resultMap id="BaseResultMap" type="com.yida.data.common.core.entity.exam.CoreExaminationCourse">
        <id column="id" property="id" jdbcType="INTEGER"/>
        <result column="create_id" property="createId" jdbcType="VARCHAR"/>
        <result column="create_date" property="createDate" jdbcType="TIMESTAMP"/>
        <result column="update_id" property="updateId" jdbcType="VARCHAR"/>
        <result column="update_date" property="updateDate" jdbcType="TIMESTAMP"/>
        <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
        <result column="core_examination_id" property="coreExaminationId" jdbcType="INTEGER"/>
        <result column="core_course_id" property="coreCourseId" jdbcType="INTEGER"/>
        <result column="core_course_name" property="coreCourseName" jdbcType="VARCHAR"/>
        <result column="core_course_score" property="coreCourseScore" jdbcType="INTEGER"/>
    </resultMap>
    <select id="selectCourseList" resultType="com.yida.data.common.core.entity.exam.CoreExaminationCourse">
        SELECT DISTINCT
        * FROM `core_examination_course`
        WHERE core_examination_id = #{examId}
        AND del_flag = 0
        AND core_course_id IN
        <foreach collection="list" item="item" separator="," close=")" open="(">
            #{item}
        </foreach>

    </select>
</mapper>