|
@@ -14,7 +14,8 @@
|
|
|
<result column="subject_id_list_" property="subjectIdList" />
|
|
|
<result column="main_teacher_user_id_" property="mainTeacherUserId" />
|
|
|
<result column="assistant_teacher_user_id_list_" property="assistantTeacherUserIdList" />
|
|
|
- <result column="exam_time_" property="examTime" />
|
|
|
+ <result column="exam_start_time_" property="examStartTime" />
|
|
|
+ <result column="exam_end_time_" property="examEndTime" />
|
|
|
<result column="del_flag_" property="delFlag" />
|
|
|
<result column="organ_id_" property="organId"/>
|
|
|
<result column="exam_plan_push_flag_" property="examPlanPushFlag" typeHandler="com.keao.edu.common.dal.CustomEnumTypeHandler"/>
|
|
@@ -36,9 +37,9 @@
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
|
<insert id="insert" parameterType="com.keao.edu.user.api.entity.ExamRoom" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
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_time_,del_flag_,organ_id_,exam_plan_push_flag_,create_time_,update_time_,tenant_id_)
|
|
|
+ assistant_teacher_user_id_list_,exam_start_time_,exam_end_time_,del_flag_,organ_id_,exam_plan_push_flag_,create_time_,update_time_,tenant_id_)
|
|
|
VALUES(#{id},#{examinationBasicId},#{examMode},#{examLocationId},#{subjectIdList},#{mainTeacherUserId},#{assistantTeacherUserIdList},
|
|
|
- #{examTime},#{delFlag},#{organId},#{examPlanPushFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},NOW(),NOW(),#{tenantId})
|
|
|
+ #{examStartTime},#{examEndTime},#{delFlag},#{organId},#{examPlanPushFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},NOW(),NOW(),#{tenantId})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -51,8 +52,11 @@
|
|
|
<if test="examinationBasicId != null">
|
|
|
examination_basic_id_ = #{examinationBasicId},
|
|
|
</if>
|
|
|
- <if test="examTimeJson != null">
|
|
|
- exam_time_ = #{examTime},
|
|
|
+ <if test="examStartTime != null">
|
|
|
+ exam_start_time_ = #{examStartTime},
|
|
|
+ </if>
|
|
|
+ <if test="examEndTime != null">
|
|
|
+ exam_end_time_ = #{examEndTime},
|
|
|
</if>
|
|
|
<if test="subjectIdList != null">
|
|
|
subject_id_list_ = #{subjectIdList},
|