<?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.ym.mec.biz.dal.dao.StudentExtracurricularExercisesSituationDao">

	<resultMap type="com.ym.mec.biz.dal.entity.StudentExtracurricularExercisesSituation" id="StudentExtracurricularExercisesSituation">
		<result column="id_" property="id" />
		<result column="student_id_" property="studentId" />
		<result column="week_of_year_" property="weekOfYear" />
		<result column="monday_" property="monday" />
		<result column="sunday_" property="sunday" />
		<result column="teacher_id_" property="teacherId" />
		<result column="expect_exercises_num_" property="expectExercisesNum" />
		<result column="actual_exercises_num_" property="actualExercisesNum" />
		<result column="exercises_reply_num_" property="exercisesReplyNum" />
		<result column="exercises_message_num_" property="exercisesMessageNum" />
		<result column="exercises_message_timely_num_" property="exercisesMessageTimelyNum" />
		<result column="create_time_" property="createTime" />
		<result column="update_time_" property="updateTime" />
		<result column="last_submit_time_" property="lastSubmitTime"/>
		<result column="serve_type_" property="serveType"/>
	</resultMap>

	<resultMap id="StudentExercisesSituationDto" type="com.ym.mec.biz.dal.dto.StudentExercisesSituationDto" extends="StudentExtracurricularExercisesSituation">
		<result column="student_name_" property="studentName"/>
		<result column="teacher_name_" property="teacherName"/>
		<result column="organ_name_" property="organName"/>
		<result column="exist_vip_course_" property="existVipCourse"/>
	</resultMap>

	<!-- 根据主键查询一条记录 -->
	<select id="get" resultMap="StudentExtracurricularExercisesSituation" >
		SELECT * FROM student_extracurricular_exercises_situation_ WHERE id_ = #{id} 
	</select>

	<!-- 全查询 -->
	<select id="findAll" resultMap="StudentExtracurricularExercisesSituation">
		SELECT * FROM student_extracurricular_exercises_situation_ ORDER BY id_
	</select>

	<!-- 向数据库增加一条记录 -->
	<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.StudentExtracurricularExercisesSituation" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
		<!--
		<selectKey resultClass="int" keyProperty="id" > 
		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
		</selectKey>
		-->
		INSERT INTO student_extracurricular_exercises_situation_ (id_,student_id_,week_of_year_,monday_,sunday_,teacher_id_,expect_exercises_num_,actual_exercises_num_,exercises_reply_num_,exercises_message_num_,exercises_message_timely_num_,create_time_,update_time_,last_submit_time_,serve_type_)
		VALUES(#{id},#{studentId},#{weekOfYear},#{monday},#{sunday},#{teacherId},#{expectExercisesNum},#{actualExercisesNum},#{exercisesReplyNum},#{exercisesMessageNum},#{exercisesMessageTimelyNum},NOW(),NOW(),#{lastSubmitTime},#{serveType})
	</insert>

	<insert id="batchInsert" parameterType="com.ym.mec.biz.dal.entity.StudentExtracurricularExercisesSituation" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
		INSERT INTO student_extracurricular_exercises_situation_ (student_id_,week_of_year_,monday_,sunday_,teacher_id_,expect_exercises_num_,actual_exercises_num_,exercises_reply_num_,exercises_message_num_,exercises_message_timely_num_,create_time_,update_time_,last_submit_time_,serve_type_)
		VALUES
		<foreach collection="situations" item="situation" separator=",">
			(#{situation.studentId},#{situation.weekOfYear},#{situation.monday},#{situation.sunday},#{situation.teacherId},#{situation.expectExercisesNum},#{situation.actualExercisesNum},#{situation.exercisesReplyNum},#{situation.exercisesMessageNum},#{situation.exercisesMessageTimelyNum},NOW(),NOW(),#{situation.lastSubmitTime},#{situation.serveType})
		</foreach>
	</insert>

	<!-- 根据主键查询一条记录 -->
	<update id="update" parameterType="com.ym.mec.biz.dal.entity.StudentExtracurricularExercisesSituation">
		UPDATE student_extracurricular_exercises_situation_
		<set>
			<if test="exercisesReplyNum != null">
				exercises_reply_num_ = #{exercisesReplyNum},
			</if>
			<if test="monday != null">
				monday_ = #{monday},
			</if>
			<if test="id != null">
				id_ = #{id},
			</if>
			<if test="weekOfYear != null">
				week_of_year_ = #{weekOfYear},
			</if>
			<if test="exercisesMessageNum != null">
				exercises_message_num_ = #{exercisesMessageNum},
			</if>
			<if test="createTime != null">
				create_time_ = #{createTime},
			</if>
			<if test="teacherId != null">
				teacher_id_ = #{teacherId},
			</if>
			<if test="actualExercisesNum != null">
				actual_exercises_num_ = #{actualExercisesNum},
			</if>
			<if test="exercisesMessageTimelyNum != null">
				exercises_message_timely_num_ = #{exercisesMessageTimelyNum},
			</if>
			<if test="studentId != null">
				student_id_ = #{studentId},
			</if>
			<if test="expectExercisesNum != null">
				expect_exercises_num_ = #{expectExercisesNum},
			</if>
			<if test="sunday != null">
				sunday_ = #{sunday},
			</if>
			<if test="lastSubmitTime!=null">
				last_submit_time_=#{lastSubmitTime},
			</if>
			<if test="serveType!=null">
				serve_type_=#{serveType},
			</if>
			update_time_ = #{updateTime}
		</set> WHERE id_ = #{id}
	</update>

	<!-- 根据主键删除一条记录 -->
	<delete id="delete" >
		DELETE FROM student_extracurricular_exercises_situation_ WHERE id_ = #{id} 
	</delete>
	<delete id="deleteByMonday">
		DELETE FROM student_extracurricular_exercises_situation_ WHERE monday_ = #{monday}
	</delete>
	<delete id="deleteByStudent">
		DELETE FROM student_extracurricular_exercises_situation_ WHERE student_id_ = #{studentId}
	</delete>

	<!-- 分页查询 -->
	<select id="queryPage" resultMap="StudentExtracurricularExercisesSituation" parameterType="map">
		SELECT * FROM student_extracurricular_exercises_situation_ ORDER BY id_ <include refid="global.limit"/>
	</select>

	<!-- 查询当前表的总记录数 -->
	<select id="queryCount" resultType="int">
		SELECT COUNT(*) FROM student_extracurricular_exercises_situation_
	</select>

	<select id="findExercisesSituations" resultMap="StudentExercisesSituationDto">
		SELECT
		MAX(sees.id_) id_,
		student_id_,
		stu.username_ student_name_,
		GROUP_CONCAT(DISTINCT tea.real_name_ ORDER BY tea.id_) teacher_name_,
		o.name_ organ_name_,
		SUM( expect_exercises_num_ ) expect_exercises_num_,
		SUM( actual_exercises_num_ ) actual_exercises_num_,
		<if test="submitStartDate==null or submitEndDate==null">
			SUM( exercises_reply_num_ ) exercises_reply_num_,
			SUM( exercises_message_num_ ) exercises_message_num_,
			SUM( exercises_message_timely_num_ ) exercises_message_timely_num_,
			MAX(last_submit_time_) last_submit_time_
		</if>
		<if test="submitStartDate!=null and submitEndDate!=null">
			SUM(IF(DATE_FORMAT(last_submit_time_, '%Y-%m-%d') BETWEEN #{submitStartDate} AND #{submitEndDate},exercises_reply_num_,0)) exercises_reply_num_,
			SUM(IF(DATE_FORMAT(last_submit_time_, '%Y-%m-%d') BETWEEN #{submitStartDate} AND #{submitEndDate},exercises_message_num_,0)) exercises_message_num_,
			SUM(IF(DATE_FORMAT(last_submit_time_, '%Y-%m-%d') BETWEEN #{submitStartDate} AND #{submitEndDate},exercises_message_timely_num_,0)) exercises_message_timely_num_,
			MAX(IF(DATE_FORMAT(last_submit_time_, '%Y-%m-%d') BETWEEN #{submitStartDate} AND #{submitEndDate},last_submit_time_, NULL)) last_submit_time_
		</if>
		FROM
		student_extracurricular_exercises_situation_ sees
		LEFT JOIN sys_user stu ON stu.id_=sees.student_id_
		LEFT JOIN teacher t ON t.id_=sees.teacher_id_
		LEFT JOIN sys_user tea ON tea.id_=sees.teacher_id_
		LEFT JOIN organization o ON stu.organ_id_=o.id_
		WHERE
		sees.monday_ &gt;= #{monday}
		AND sees.sunday_ &lt;= #{sunday}
		<if test="teacherId!=null">
			AND sees.teacher_id_ = #{teacherId}
		</if>
		<if test="search!=null">
			AND (stu.id_=#{search} OR stu.username_ LIKE CONCAT('%', #{search}, '%'))
		</if>
		<if test="organIdList != null">
			AND FIND_IN_SET(t.organ_id_,#{organIdList})
		</if>
		<if test="existVipCourse!=null and existVipCourse==1">
			AND EXISTS (SELECT cssp.id_ FROM course_schedule_student_payment cssp LEFT JOIN course_schedule cs ON cs.id_=cssp.course_schedule_id_ WHERE cssp.user_id_=sees.student_id_ AND cssp.group_type_='VIP' AND class_date_ BETWEEN #{monday} AND #{sunday})
		</if>
		<if test="existVipCourse!=null and existVipCourse==0">
			AND NOT EXISTS (SELECT cssp.id_ FROM course_schedule_student_payment cssp LEFT JOIN course_schedule cs ON cs.id_=cssp.course_schedule_id_ WHERE cssp.user_id_=sees.student_id_ AND cssp.group_type_='VIP' AND class_date_ BETWEEN #{monday} AND #{sunday})
		</if>
		<if test="existPracticeCourse!=null and existPracticeCourse==1">
			AND EXISTS (SELECT cssp.id_ FROM course_schedule_student_payment cssp LEFT JOIN course_schedule cs ON cs.id_=cssp.course_schedule_id_ LEFT JOIN practice_group pg ON pg.id_=cssp.music_group_id_ WHERE cssp.user_id_=sees.student_id_ AND cssp.group_type_='PRACTICE' AND pg.type_='CHARGE' AND class_date_ BETWEEN #{monday} AND #{sunday})
		</if>
		<if test="existPracticeCourse!=null and existPracticeCourse==0">
			AND NOT EXISTS (SELECT cssp.id_ FROM course_schedule_student_payment cssp LEFT JOIN course_schedule cs ON cs.id_=cssp.course_schedule_id_ LEFT JOIN practice_group pg ON pg.id_=cssp.music_group_id_ WHERE cssp.user_id_=sees.student_id_ AND cssp.group_type_='PRACTICE' AND pg.type_='CHARGE' AND class_date_ BETWEEN #{monday} AND #{sunday})
		</if>
		GROUP BY
		student_id_
		<trim prefix="HAVING" suffixOverrides="and">
			<if test="expectExercisesNum!=null">  SUM( expect_exercises_num_ ) = #{expectExercisesNum}</if>
			<if test="actualExercisesNumIsAchieve!=null and actualExercisesNumIsAchieve==0">
				SUM( actual_exercises_num_ )&lt;SUM( expect_exercises_num_ ) and
			</if>
			<if test="actualExercisesNumIsAchieve!=null and actualExercisesNumIsAchieve==1">
				SUM( actual_exercises_num_ )&gt;=SUM( expect_exercises_num_ ) and
			</if>
			<if test="submitStartDate==null or submitEndDate==null">
				<if test="exercisesReplyNumIsAchieve!=null and exercisesReplyNumIsAchieve==0">
					SUM( exercises_reply_num_ ) &lt; SUM( actual_exercises_num_ ) and
				</if>
				<if test="exercisesReplyNumIsAchieve!=null and exercisesReplyNumIsAchieve==1">
					SUM( exercises_reply_num_ ) &gt;= SUM( actual_exercises_num_ ) and
				</if>
				<if test="exercisesMessageNumIsAchieve!=null and exercisesMessageNumIsAchieve==0">
					SUM( exercises_message_num_ ) &lt; SUM( exercises_reply_num_ ) and
				</if>
				<if test="exercisesMessageNumIsAchieve!=null and exercisesMessageNumIsAchieve==1">
					SUM( exercises_message_num_ ) &gt;= SUM( exercises_reply_num_ ) and
				</if>
				<if test="exercisesMessageTimelyNumIsAchieve!=null and exercisesMessageTimelyNumIsAchieve==0">
					SUM( exercises_message_timely_num_ ) &lt; SUM( exercises_message_num_ ) and
				</if>
				<if test="exercisesMessageTimelyNumIsAchieve!=null and exercisesMessageTimelyNumIsAchieve==1">
					SUM( exercises_message_timely_num_ ) &gt;= SUM( exercises_message_num_ ) and
				</if>
			</if>
			<if test="submitStartDate!=null and submitEndDate!=null">
				<if test="exercisesReplyNumIsAchieve!=null and exercisesReplyNumIsAchieve==0">
					SUM(IF(DATE_FORMAT(last_submit_time_, '%Y-%m-%d') BETWEEN #{submitStartDate} AND #{submitEndDate},exercises_reply_num_,0)) &lt; SUM( actual_exercises_num_ ) and
				</if>
				<if test="exercisesReplyNumIsAchieve!=null and exercisesReplyNumIsAchieve==1">
					SUM(IF(DATE_FORMAT(last_submit_time_, '%Y-%m-%d') BETWEEN #{submitStartDate} AND #{submitEndDate},exercises_reply_num_,0)) &gt;= SUM( actual_exercises_num_ ) and
				</if>
				<if test="exercisesMessageNumIsAchieve!=null and exercisesMessageNumIsAchieve==0">
					SUM(IF(DATE_FORMAT(last_submit_time_, '%Y-%m-%d') BETWEEN #{submitStartDate} AND #{submitEndDate},exercises_message_num_,0)) &lt; SUM( exercises_reply_num_ ) and
				</if>
				<if test="exercisesMessageNumIsAchieve!=null and exercisesMessageNumIsAchieve==1">
					SUM(IF(DATE_FORMAT(last_submit_time_, '%Y-%m-%d') BETWEEN #{submitStartDate} AND #{submitEndDate},exercises_message_num_,0)) &gt;= SUM( exercises_reply_num_ ) and
				</if>
				<if test="exercisesMessageTimelyNumIsAchieve!=null and exercisesMessageTimelyNumIsAchieve==0">
					SUM(IF(DATE_FORMAT(last_submit_time_, '%Y-%m-%d') BETWEEN #{submitStartDate} AND #{submitEndDate},exercises_message_timely_num_,0)) &lt; SUM( exercises_message_num_ ) and
				</if>
				<if test="exercisesMessageTimelyNumIsAchieve!=null and exercisesMessageTimelyNumIsAchieve==1">
					SUM(IF(DATE_FORMAT(last_submit_time_, '%Y-%m-%d') BETWEEN #{submitStartDate} AND #{submitEndDate},exercises_message_timely_num_,0)) &gt;= SUM( exercises_message_num_ ) and
				</if>
			</if>
		</trim>
		ORDER BY student_id_
		<include refid="global.limit"/>
	</select>

	<select id="countExercisesSituations" resultType="int">
		SELECT COUNT(1) FROM (
		SELECT
		1
		FROM
		student_extracurricular_exercises_situation_ sees
		LEFT JOIN sys_user stu ON stu.id_=sees.student_id_
		LEFT JOIN teacher t ON t.id_=sees.teacher_id_
		LEFT JOIN sys_user tea ON tea.id_=sees.teacher_id_
		LEFT JOIN organization o ON stu.organ_id_=o.id_
		WHERE
		sees.monday_ &gt;= #{monday}
		AND sees.sunday_ &lt;= #{sunday}
		<if test="teacherId!=null">
			AND sees.teacher_id_ = #{teacherId}
		</if>
		<if test="search!=null">
			AND (stu.id_=#{search} OR stu.username_ LIKE CONCAT('%', #{search}, '%'))
		</if>
		<if test="organIdList != null">
			AND FIND_IN_SET(t.organ_id_, #{organIdList})
		</if>
		<if test="existVipCourse!=null and existVipCourse==1">
			AND EXISTS (SELECT cssp.id_ FROM course_schedule_student_payment cssp LEFT JOIN course_schedule cs ON cs.id_=cssp.course_schedule_id_ WHERE cssp.user_id_=sees.student_id_ AND cssp.group_type_='VIP' AND class_date_ BETWEEN #{monday} AND #{sunday})
		</if>
		<if test="existVipCourse!=null and existVipCourse==0">
			AND NOT EXISTS (SELECT cssp.id_ FROM course_schedule_student_payment cssp LEFT JOIN course_schedule cs ON cs.id_=cssp.course_schedule_id_ WHERE cssp.user_id_=sees.student_id_ AND cssp.group_type_='VIP' AND class_date_ BETWEEN #{monday} AND #{sunday})
		</if>
		<if test="existPracticeCourse!=null and existPracticeCourse==1">
			AND EXISTS (SELECT cssp.id_ FROM course_schedule_student_payment cssp LEFT JOIN course_schedule cs ON cs.id_=cssp.course_schedule_id_ LEFT JOIN practice_group pg ON pg.id_=cssp.music_group_id_ WHERE cssp.user_id_=sees.student_id_ AND cssp.group_type_='PRACTICE' AND pg.type_='CHARGE' AND class_date_ BETWEEN #{monday} AND #{sunday})
		</if>
		<if test="existPracticeCourse!=null and existPracticeCourse==0">
			AND NOT EXISTS (SELECT cssp.id_ FROM course_schedule_student_payment cssp LEFT JOIN course_schedule cs ON cs.id_=cssp.course_schedule_id_ LEFT JOIN practice_group pg ON pg.id_=cssp.music_group_id_ WHERE cssp.user_id_=sees.student_id_ AND cssp.group_type_='PRACTICE' AND pg.type_='CHARGE' AND class_date_ BETWEEN #{monday} AND #{sunday})
		</if>
		GROUP BY
		student_id_
		<trim prefix="HAVING" suffixOverrides="and">
			<if test="expectExercisesNum!=null">  SUM( expect_exercises_num_ ) = #{expectExercisesNum}</if>
			<if test="actualExercisesNumIsAchieve!=null and actualExercisesNumIsAchieve==0">
				SUM( actual_exercises_num_ )&lt;SUM( expect_exercises_num_ ) and
			</if>
			<if test="actualExercisesNumIsAchieve!=null and actualExercisesNumIsAchieve==1">
				SUM( actual_exercises_num_ )&gt;=SUM( expect_exercises_num_ ) and
			</if>
			<if test="submitStartDate==null or submitEndDate==null">
				<if test="exercisesReplyNumIsAchieve!=null and exercisesReplyNumIsAchieve==0">
					SUM( exercises_reply_num_ ) &lt; SUM( actual_exercises_num_ ) and
				</if>
				<if test="exercisesReplyNumIsAchieve!=null and exercisesReplyNumIsAchieve==1">
					SUM( exercises_reply_num_ ) &gt;= SUM( actual_exercises_num_ ) and
				</if>
				<if test="exercisesMessageNumIsAchieve!=null and exercisesMessageNumIsAchieve==0">
					SUM( exercises_message_num_ ) &lt; SUM( exercises_reply_num_ ) and
				</if>
				<if test="exercisesMessageNumIsAchieve!=null and exercisesMessageNumIsAchieve==1">
					SUM( exercises_message_num_ ) &gt;= SUM( exercises_reply_num_ ) and
				</if>
				<if test="exercisesMessageTimelyNumIsAchieve!=null and exercisesMessageTimelyNumIsAchieve==0">
					SUM( exercises_message_timely_num_ ) &lt; SUM( exercises_message_num_ ) and
				</if>
				<if test="exercisesMessageTimelyNumIsAchieve!=null and exercisesMessageTimelyNumIsAchieve==1">
					SUM( exercises_message_timely_num_ ) &gt;= SUM( exercises_message_num_ ) and
				</if>
			</if>
			<if test="submitStartDate!=null and submitEndDate!=null">
				<if test="exercisesReplyNumIsAchieve!=null and exercisesReplyNumIsAchieve==0">
					SUM(IF(DATE_FORMAT(last_submit_time_, '%Y-%m-%d') BETWEEN #{submitStartDate} AND #{submitEndDate},exercises_reply_num_,0)) &lt; SUM( actual_exercises_num_ ) and
				</if>
				<if test="exercisesReplyNumIsAchieve!=null and exercisesReplyNumIsAchieve==1">
					SUM(IF(DATE_FORMAT(last_submit_time_, '%Y-%m-%d') BETWEEN #{submitStartDate} AND #{submitEndDate},exercises_reply_num_,0)) &gt;= SUM( actual_exercises_num_ ) and
				</if>
				<if test="exercisesMessageNumIsAchieve!=null and exercisesMessageNumIsAchieve==0">
					SUM(IF(DATE_FORMAT(last_submit_time_, '%Y-%m-%d') BETWEEN #{submitStartDate} AND #{submitEndDate},exercises_message_num_,0)) &lt; SUM( exercises_reply_num_ ) and
				</if>
				<if test="exercisesMessageNumIsAchieve!=null and exercisesMessageNumIsAchieve==1">
					SUM(IF(DATE_FORMAT(last_submit_time_, '%Y-%m-%d') BETWEEN #{submitStartDate} AND #{submitEndDate},exercises_message_num_,0)) &gt;= SUM( exercises_reply_num_ ) and
				</if>
				<if test="exercisesMessageTimelyNumIsAchieve!=null and exercisesMessageTimelyNumIsAchieve==0">
					SUM(IF(DATE_FORMAT(last_submit_time_, '%Y-%m-%d') BETWEEN #{submitStartDate} AND #{submitEndDate},exercises_message_timely_num_,0)) &lt; SUM( exercises_message_num_ ) and
				</if>
				<if test="exercisesMessageTimelyNumIsAchieve!=null and exercisesMessageTimelyNumIsAchieve==1">
					SUM(IF(DATE_FORMAT(last_submit_time_, '%Y-%m-%d') BETWEEN #{submitStartDate} AND #{submitEndDate},exercises_message_timely_num_,0)) &gt;= SUM( exercises_message_num_ ) and
				</if>
			</if>
		</trim>
		) tmp
	</select>
	<select id="findExercisesSituationsById" resultMap="StudentExtracurricularExercisesSituation">
		SELECT * FROM student_extracurricular_exercises_situation_ WHERE id_ IN
		<foreach collection="ids" item="id" separator="," open="(" close=")">
			#{id}
		</foreach>
	</select>
	<select id="findTeacherExercisesServiceSituations" resultType="com.ym.mec.biz.dal.dto.TeacherExercisesServiceDto">
		SELECT
		teacher_id_ teacherId,
		COUNT( exercises_reply_num_ ) expectExercisesNum,
		COUNT( CASE WHEN actual_exercises_num_ = 1 THEN 1 ELSE NULL END ) actualExercisesNum
		FROM
		student_extracurricular_exercises_situation_
		FORCE INDEX(monday_)
		WHERE monday_ = #{monday}
		AND teacher_id_ IN
		<foreach collection="teacherIds" item="teacherId" open="(" close=")" separator=",">
			#{teacherId}
		</foreach>
		GROUP BY
		teacher_id_;
	</select>
	<select id="findLastWeekTodayUpdateNum" resultType="int">
		SELECT COUNT(id_) FROM student_extracurricular_exercises_situation_ WHERE sunday_=#{sunday} AND DATE_FORMAT(update_time_,'%Y-%m-%d')=DATE_FORMAT(NOW(),'%Y-%m-%d')
    </select>
	<select id="findStudentExercisesSituationsWithMonDay" resultMap="StudentExtracurricularExercisesSituation">
		SELECT * FROM student_extracurricular_exercises_situation_ WHERE monday_=#{monday} AND student_id_=#{studentId}
	</select>
	<select id="getNoFinishedServiceTeacher" resultType="java.util.Map">
		SELECT
			teacher_id_ AS 'key',
			COUNT( student_id_ ) AS 'value'
		FROM
			student_extracurricular_exercises_situation_
		WHERE
			actual_exercises_num_ = 0
			AND serve_type_ = 'EXERCISE'
			AND monday_ = #{monday}
			AND teacher_id_ IS NOT NULL
		GROUP BY
			teacher_id_
	</select>
</mapper>
