<?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.artfess.examine.dao.ExamPaperTaskDao">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.artfess.examine.model.ExamPaperTask">
        <id column="id_" property="id" />
        <result column="name_" property="name" />
        <result column="type_" property="type" />
        <result column="time_length_" property="timeLength" />
        <result column="pass_score_" property="passScore" />
        <result column="total_person_" property="totalPerson" />
        <result column="paper_id_" property="paperId" />
        <result column="plan_start_time_" property="planStartTime" />
        <result column="plan_end_time_" property="planEndTime" />
        <result column="train_model_" property="trainModel" />
        <result column="room_id_" property="roomId" />
        <result column="jk_person_id_" property="jkPersonId" />
        <result column="yj_person_id_" property="yjPersonId" />
        <result column="status_" property="status" />
        <result column="switch_count_" property="switchCount" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id_, name_, type_, time_length_, pass_score_, total_person_, paper_id_, plan_start_time_, plan_end_time_, train_model_, room_id_, jk_person_id_, yj_person_id_, status_, switch_count_
    </sql>
    <select id="getUserIds" resultType="com.artfess.examine.vo.UserInfoVo">
        SELECT
            ou.user_id_,
            u.fullname_ AS userName
        FROM
            uc_org_user ou
            LEFT JOIN uc_user u ON u.id_ = ou.user_id_
        WHERE ou.pos_id_ =#{positionId}

    </select>

</mapper>
