|
@@ -11,6 +11,7 @@
|
|
|
<result column="name_" property="name" />
|
|
|
<result column="exam_mode_" property="examMode" typeHandler="com.keao.edu.common.dal.CustomEnumTypeHandler" />
|
|
|
<result column="exam_location_id_list_" property="examLocationIdList" />
|
|
|
+ <result column="exam_location_name_list_" property="examLocationNameList" />
|
|
|
<result column="status_" property="status" typeHandler="com.keao.edu.common.dal.CustomEnumTypeHandler" />
|
|
|
<result column="enroll_start_time_" property="enrollStartTime" />
|
|
|
<result column="enroll_end_time_" property="enrollEndTime" />
|
|
@@ -46,8 +47,8 @@
|
|
|
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
|
<insert id="insert" parameterType="com.keao.edu.user.entity.ExaminationBasic" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
- INSERT INTO examination_basic (id_,name_,exam_mode_,exam_location_id_list_,status_,enroll_start_time_,enroll_end_time_,expect_exam_start_time_,expect_exam_end_time_,poster_title_,poster_profile_,poster_background_img_,creator_id_,create_time_,update_time_,tenant_id_,memo_,organ_id_)
|
|
|
- VALUES(#{id},#{name},#{examMode,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{examLocationIdList},#{status,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{enrollStartTime},#{enrollEndTime},#{expectExamStartTime},#{expectExamEndTime},#{posterTitle},#{posterProfile},#{posterBackgroundImg},#{creatorId},NOW(),NOW(),#{tenantId},#{memo},#{organId})
|
|
|
+ INSERT INTO examination_basic (id_,name_,exam_mode_,exam_location_id_list_,exam_location_name_list_,status_,enroll_start_time_,enroll_end_time_,expect_exam_start_time_,expect_exam_end_time_,poster_title_,poster_profile_,poster_background_img_,creator_id_,create_time_,update_time_,tenant_id_,memo_,organ_id_)
|
|
|
+ VALUES(#{id},#{name},#{examMode,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{examLocationIdList},#{examLocationNameList},#{status,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{enrollStartTime},#{enrollEndTime},#{expectExamStartTime},#{expectExamEndTime},#{posterTitle},#{posterProfile},#{posterBackgroundImg},#{creatorId},NOW(),NOW(),#{tenantId},#{memo},#{organId})
|
|
|
</insert>
|
|
|
|
|
|
<update id="update" parameterType="com.keao.edu.user.entity.ExamOrganizationRelation">
|
|
@@ -62,6 +63,9 @@
|
|
|
<if test="examLocationIdList != null">
|
|
|
exam_location_id_list_ = #{examLocationIdList},
|
|
|
</if>
|
|
|
+ <if test="examLocationNameList != null">
|
|
|
+ exam_location_name_list_ = #{examLocationNameList},
|
|
|
+ </if>
|
|
|
<if test="status != null">
|
|
|
status_ = #{status,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
@@ -112,6 +116,9 @@
|
|
|
<if test="examLocationIdList != null">
|
|
|
exam_location_id_list_ = #{exam.examLocationIdList},
|
|
|
</if>
|
|
|
+ <if test="examLocationNameList != null">
|
|
|
+ exam_location_name_list_ = #{exam.examLocationNameList},
|
|
|
+ </if>
|
|
|
<if test="status != null">
|
|
|
status_ = #{exam.status,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|