|
@@ -9,7 +9,7 @@
|
|
|
<resultMap type="com.keao.edu.user.api.entity.ExamRoom" id="ExamRoom">
|
|
|
<result column="id_" property="id" />
|
|
|
<result column="examination_basic_id_" property="examinationBasicId"/>
|
|
|
- <result column="exam_mode_" property="examMode" />
|
|
|
+ <result column="exam_mode_" property="examMode" typeHandler="com.keao.edu.common.dal.CustomEnumTypeHandler"/>
|
|
|
<result column="exam_location_id_" property="examLocationId" />
|
|
|
<result column="subject_id_list_" property="subjectIdList" />
|
|
|
<result column="main_teacher_user_id_" property="mainTeacherUserId" />
|
|
@@ -40,7 +40,8 @@
|
|
|
INSERT INTO exam_room (id_,examination_basic_id_,exam_mode_,exam_location_id_,subject_id_list_,main_teacher_user_id_,
|
|
|
assistant_teacher_user_id_list_,exam_start_time_,exam_end_time_,del_flag_,organ_id_,exam_plan_push_flag_,
|
|
|
exam_room_student_num_,create_time_,update_time_,tenant_id_)
|
|
|
- VALUES(#{id},#{examinationBasicId},#{examMode},#{examLocationId},#{subjectIdList},#{mainTeacherUserId},#{assistantTeacherUserIdList},
|
|
|
+ VALUES(#{id},#{examinationBasicId},#{examMode,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{examLocationId},#{subjectIdList},
|
|
|
+ #{mainTeacherUserId},#{assistantTeacherUserIdList},
|
|
|
#{examStartTime},#{examEndTime},#{delFlag},#{organId},#{examPlanPushFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
|
|
|
#{examRoomStudentNum},NOW(),NOW(),#{tenantId})
|
|
|
</insert>
|
|
@@ -68,7 +69,7 @@
|
|
|
tenant_id_ = #{tenantId},
|
|
|
</if>
|
|
|
<if test="examMode != null">
|
|
|
- exam_mode_ = #{examMode},
|
|
|
+ exam_mode_ = #{examMode,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
|
<if test="examLocationId != null">
|
|
|
exam_location_id_ = #{examLocationId},
|
|
@@ -114,7 +115,7 @@
|
|
|
tenant_id_ = #{tenantId},
|
|
|
</if>
|
|
|
<if test="examMode != null">
|
|
|
- exam_mode_ = #{examMode},
|
|
|
+ exam_mode_ = #{examMode,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
|
<if test="examLocationId != null">
|
|
|
exam_location_id_ = #{examLocationId},
|