|
|
@@ -15,13 +15,16 @@
|
|
|
<result column="form" property="form" jdbcType="INTEGER" />
|
|
|
<result column="img_urls" property="imgUrls" jdbcType="VARCHAR" />
|
|
|
<result column="result" property="result" jdbcType="VARCHAR" />
|
|
|
+ <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="enroll_deadline" property="enrollDeadline" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="title_url" property="titleUrl" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<resultMap id="ResultMapWithBLOBs" type="com.goafanti.common.model.Activity" extends="BaseResultMap" >
|
|
|
<result column="desc" property="desc" jdbcType="LONGVARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, start_time, end_time, name, status, address, host, undertake, asist, type, form,
|
|
|
- img_urls, result
|
|
|
+ img_urls, result, create_time, enroll_deadline, title_url
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List" >
|
|
|
desc
|
|
|
@@ -43,12 +46,14 @@
|
|
|
name, status, address,
|
|
|
host, undertake, asist,
|
|
|
type, form, img_urls,
|
|
|
- result, desc)
|
|
|
+ result, create_time, enroll_deadline,
|
|
|
+ title_url, desc)
|
|
|
values (#{id,jdbcType=BIGINT}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
|
|
|
#{name,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{address,jdbcType=VARCHAR},
|
|
|
#{host,jdbcType=VARCHAR}, #{undertake,jdbcType=VARCHAR}, #{asist,jdbcType=VARCHAR},
|
|
|
#{type,jdbcType=INTEGER}, #{form,jdbcType=INTEGER}, #{imgUrls,jdbcType=VARCHAR},
|
|
|
- #{result,jdbcType=VARCHAR}, #{desc,jdbcType=LONGVARCHAR})
|
|
|
+ #{result,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{enrollDeadline,jdbcType=TIMESTAMP},
|
|
|
+ #{titleUrl,jdbcType=VARCHAR}, #{desc,jdbcType=LONGVARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Activity" >
|
|
|
insert into activity
|
|
|
@@ -92,6 +97,15 @@
|
|
|
<if test="result != null" >
|
|
|
result,
|
|
|
</if>
|
|
|
+ <if test="createTime != null" >
|
|
|
+ create_time,
|
|
|
+ </if>
|
|
|
+ <if test="enrollDeadline != null" >
|
|
|
+ enroll_deadline,
|
|
|
+ </if>
|
|
|
+ <if test="titleUrl != null" >
|
|
|
+ title_url,
|
|
|
+ </if>
|
|
|
<if test="desc != null" >
|
|
|
desc,
|
|
|
</if>
|
|
|
@@ -136,6 +150,15 @@
|
|
|
<if test="result != null" >
|
|
|
#{result,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="createTime != null" >
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="enrollDeadline != null" >
|
|
|
+ #{enrollDeadline,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="titleUrl != null" >
|
|
|
+ #{titleUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="desc != null" >
|
|
|
#{desc,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
@@ -180,6 +203,15 @@
|
|
|
<if test="result != null" >
|
|
|
result = #{result,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="createTime != null" >
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="enrollDeadline != null" >
|
|
|
+ enroll_deadline = #{enrollDeadline,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="titleUrl != null" >
|
|
|
+ title_url = #{titleUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="desc != null" >
|
|
|
desc = #{desc,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
@@ -200,6 +232,9 @@
|
|
|
form = #{form,jdbcType=INTEGER},
|
|
|
img_urls = #{imgUrls,jdbcType=VARCHAR},
|
|
|
result = #{result,jdbcType=VARCHAR},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ enroll_deadline = #{enrollDeadline,jdbcType=TIMESTAMP},
|
|
|
+ title_url = #{titleUrl,jdbcType=VARCHAR},
|
|
|
desc = #{desc,jdbcType=LONGVARCHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
@@ -216,7 +251,10 @@
|
|
|
type = #{type,jdbcType=INTEGER},
|
|
|
form = #{form,jdbcType=INTEGER},
|
|
|
img_urls = #{imgUrls,jdbcType=VARCHAR},
|
|
|
- result = #{result,jdbcType=VARCHAR}
|
|
|
+ result = #{result,jdbcType=VARCHAR},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ enroll_deadline = #{enrollDeadline,jdbcType=TIMESTAMP},
|
|
|
+ title_url = #{titleUrl,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
</mapper>
|