|
@@ -22,6 +22,7 @@
|
|
|
<result column="poster_title_" property="posterTitle" />
|
|
|
<result column="poster_profile_" property="posterProfile" />
|
|
|
<result column="poster_background_img_" property="posterBackgroundImg" />
|
|
|
+ <result column="custom_poster_" property="customPoster"/>
|
|
|
<result column="create_time_" property="createTime" />
|
|
|
<result column="update_time_" property="updateTime" />
|
|
|
<result column="tenant_id_" property="tenantId" />
|
|
@@ -51,11 +52,11 @@
|
|
|
<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_,exam_location_name_list_,status_,enroll_start_time_,enroll_end_time_,
|
|
|
expect_exam_start_time_,expect_exam_end_time_,actual_exam_start_time_,actual_exam_end_time_,
|
|
|
- poster_title_,poster_profile_,poster_background_img_,creator_id_,create_time_,update_time_,tenant_id_,memo_,organ_id_)
|
|
|
+ poster_title_,poster_profile_,poster_background_img_,custom_poster_,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},#{actualExamStartTime},#{actualExamEndTime},
|
|
|
- #{posterTitle},#{posterProfile},#{posterBackgroundImg},#{creatorId},NOW(),NOW(),#{tenantId},#{memo},#{organId})
|
|
|
+ #{posterTitle},#{posterProfile},#{posterBackgroundImg},#{customPoster},#{creatorId},NOW(),NOW(),#{tenantId},#{memo},#{organId})
|
|
|
</insert>
|
|
|
|
|
|
<update id="update" parameterType="com.keao.edu.user.entity.ExamOrganizationRelation">
|
|
@@ -99,6 +100,9 @@
|
|
|
<if test="posterBackgroundImg != null">
|
|
|
poster_background_img_ = #{posterBackgroundImg},
|
|
|
</if>
|
|
|
+ <if test="customPoster != null">
|
|
|
+ custom_poster_ = #{customPoster},
|
|
|
+ </if>
|
|
|
<if test="tenantId != null">
|
|
|
tenant_id_ = #{tenantId},
|
|
|
</if>
|
|
@@ -154,6 +158,9 @@
|
|
|
<if test="exam.posterBackgroundImg != null">
|
|
|
poster_background_img_ = #{exam.posterBackgroundImg},
|
|
|
</if>
|
|
|
+ <if test="exam.customPoster != null">
|
|
|
+ custom_poster_ = #{exam.customPoster},
|
|
|
+ </if>
|
|
|
<if test="exam.tenantId != null">
|
|
|
tenant_id_ = #{exam.tenantId},
|
|
|
</if>
|