|
@@ -14,9 +14,10 @@
|
|
<result column="subject_id_list_" property="subjectIdList" />
|
|
<result column="subject_id_list_" property="subjectIdList" />
|
|
<result column="main_teacher_user_id_" property="mainTeacherUserId" />
|
|
<result column="main_teacher_user_id_" property="mainTeacherUserId" />
|
|
<result column="assistant_teacher_user_id_list_" property="assistantTeacherUserIdList" />
|
|
<result column="assistant_teacher_user_id_list_" property="assistantTeacherUserIdList" />
|
|
- <result column="exam_time_json_" property="examTimeJson" />
|
|
|
|
|
|
+ <result column="exam_time_" property="examTime" />
|
|
<result column="del_flag_" property="delFlag" />
|
|
<result column="del_flag_" property="delFlag" />
|
|
<result column="organ_id_" property="organId"/>
|
|
<result column="organ_id_" property="organId"/>
|
|
|
|
+ <result column="exam_plan_push_flag_" property="examPlanPushFlag" typeHandler="com.keao.edu.common.dal.CustomEnumTypeHandler"/>
|
|
<result column="create_time_" property="createTime" />
|
|
<result column="create_time_" property="createTime" />
|
|
<result column="update_time_" property="updateTime" />
|
|
<result column="update_time_" property="updateTime" />
|
|
<result column="tenant_id_" property="tenantId" />
|
|
<result column="tenant_id_" property="tenantId" />
|
|
@@ -35,9 +36,9 @@
|
|
<!-- 向数据库增加一条记录 -->
|
|
<!-- 向数据库增加一条记录 -->
|
|
<insert id="insert" parameterType="com.keao.edu.user.api.entity.ExamRoom" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
<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_,
|
|
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_json_,del_flag_,organ_id_,create_time_,update_time_,tenant_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},
|
|
VALUES(#{id},#{examinationBasicId},#{examMode},#{examLocationId},#{subjectIdList},#{mainTeacherUserId},#{assistantTeacherUserIdList},
|
|
- #{examTimeJson},#{delFlag},#{organId},NOW(),NOW(),#{tenantId})
|
|
|
|
|
|
+ #{examTime},#{delFlag},#{organId},#{examPlanPushFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},NOW(),NOW(),#{tenantId})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -51,7 +52,7 @@
|
|
examination_basic_id_ = #{examinationBasicId},
|
|
examination_basic_id_ = #{examinationBasicId},
|
|
</if>
|
|
</if>
|
|
<if test="examTimeJson != null">
|
|
<if test="examTimeJson != null">
|
|
- exam_time_json_ = #{examTimeJson},
|
|
|
|
|
|
+ exam_time_ = #{examTime},
|
|
</if>
|
|
</if>
|
|
<if test="subjectIdList != null">
|
|
<if test="subjectIdList != null">
|
|
subject_id_list_ = #{subjectIdList},
|
|
subject_id_list_ = #{subjectIdList},
|
|
@@ -74,6 +75,9 @@
|
|
<if test="organId != null">
|
|
<if test="organId != null">
|
|
organ_id_ = #{organId},
|
|
organ_id_ = #{organId},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="examPlanPushFlag != null">
|
|
|
|
+ exam_plan_push_flag_ = #{examPlanPushFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
|
|
|
|
+ </if>
|
|
update_time_ = NOW()
|
|
update_time_ = NOW()
|
|
</set> WHERE id_ = #{id}
|
|
</set> WHERE id_ = #{id}
|
|
</update>
|
|
</update>
|
|
@@ -84,7 +88,7 @@
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<delete id="batchDeleteExamRooms">
|
|
<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=")">
|
|
<foreach collection="examRoomIds" item="examRoomId" separator="," open="(" close=")">
|
|
#{examRoomId}
|
|
#{examRoomId}
|
|
</foreach>
|
|
</foreach>
|