|
@@ -17,7 +17,7 @@
|
|
|
<result column="exam_time_" property="examTime" />
|
|
|
<result column="del_flag_" property="delFlag" />
|
|
|
<result column="organ_id_" property="organId"/>
|
|
|
- <result column="exam_plan_push_flag_" property="examPlanPushFlag"/>
|
|
|
+ <result column="exam_plan_push_flag_" property="examPlanPushFlag" typeHandler="com.keao.edu.common.dal.CustomEnumTypeHandler"/>
|
|
|
<result column="create_time_" property="createTime" />
|
|
|
<result column="update_time_" property="updateTime" />
|
|
|
<result column="tenant_id_" property="tenantId" />
|
|
@@ -38,7 +38,7 @@
|
|
|
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_)
|
|
|
VALUES(#{id},#{examinationBasicId},#{examMode},#{examLocationId},#{subjectIdList},#{mainTeacherUserId},#{assistantTeacherUserIdList},
|
|
|
- #{examTime},#{delFlag},#{organId},#{examPlanPushFlag},NOW(),NOW(),#{tenantId})
|
|
|
+ #{examTime},#{delFlag},#{organId},#{examPlanPushFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},NOW(),NOW(),#{tenantId})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -76,7 +76,7 @@
|
|
|
organ_id_ = #{organId},
|
|
|
</if>
|
|
|
<if test="examPlanPushFlag != null">
|
|
|
- exam_plan_push_flag_ = #{examPlanPushFlag},
|
|
|
+ exam_plan_push_flag_ = #{examPlanPushFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
|
update_time_ = NOW()
|
|
|
</set> WHERE id_ = #{id}
|
|
@@ -88,7 +88,7 @@
|
|
|
</delete>
|
|
|
|
|
|
<delete id="batchDeleteExamRooms">
|
|
|
- DELETE FROM exam_room WHERE id_ IN
|
|
|
+ DELETE FROM exam_room WHERE exam_plan_push_flag_=0 AND id_ IN
|
|
|
<foreach collection="examRoomIds" item="examRoomId" separator="," open="(" close=")">
|
|
|
#{examRoomId}
|
|
|
</foreach>
|