|
@@ -20,14 +20,14 @@
|
|
|
<result column="title_url" property="titleUrl" jdbcType="VARCHAR" />
|
|
<result column="title_url" property="titleUrl" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<resultMap id="ResultMapWithBLOBs" type="com.goafanti.common.model.Activity" extends="BaseResultMap" >
|
|
<resultMap id="ResultMapWithBLOBs" type="com.goafanti.common.model.Activity" extends="BaseResultMap" >
|
|
|
- <result column="desc" property="desc" jdbcType="LONGVARCHAR" />
|
|
|
|
|
|
|
+ <result column="summary" property="summary" jdbcType="LONGVARCHAR" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
<sql id="Base_Column_List" >
|
|
|
id, start_time, end_time, name, status, address, host, undertake, asist, type, form,
|
|
id, start_time, end_time, name, status, address, host, undertake, asist, type, form,
|
|
|
img_urls, result, create_time, enroll_deadline, title_url
|
|
img_urls, result, create_time, enroll_deadline, title_url
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="Blob_Column_List" >
|
|
<sql id="Blob_Column_List" >
|
|
|
- desc
|
|
|
|
|
|
|
+ summary
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Long" >
|
|
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Long" >
|
|
|
select
|
|
select
|
|
@@ -47,13 +47,13 @@
|
|
|
host, undertake, asist,
|
|
host, undertake, asist,
|
|
|
type, form, img_urls,
|
|
type, form, img_urls,
|
|
|
result, create_time, enroll_deadline,
|
|
result, create_time, enroll_deadline,
|
|
|
- title_url, desc)
|
|
|
|
|
|
|
+ title_url, summary)
|
|
|
values (#{id,jdbcType=BIGINT}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
|
|
values (#{id,jdbcType=BIGINT}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
|
|
|
#{name,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{address,jdbcType=VARCHAR},
|
|
#{name,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{address,jdbcType=VARCHAR},
|
|
|
#{host,jdbcType=VARCHAR}, #{undertake,jdbcType=VARCHAR}, #{asist,jdbcType=VARCHAR},
|
|
#{host,jdbcType=VARCHAR}, #{undertake,jdbcType=VARCHAR}, #{asist,jdbcType=VARCHAR},
|
|
|
#{type,jdbcType=INTEGER}, #{form,jdbcType=INTEGER}, #{imgUrls,jdbcType=VARCHAR},
|
|
#{type,jdbcType=INTEGER}, #{form,jdbcType=INTEGER}, #{imgUrls,jdbcType=VARCHAR},
|
|
|
#{result,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{enrollDeadline,jdbcType=TIMESTAMP},
|
|
#{result,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{enrollDeadline,jdbcType=TIMESTAMP},
|
|
|
- #{titleUrl,jdbcType=VARCHAR}, #{desc,jdbcType=LONGVARCHAR})
|
|
|
|
|
|
|
+ #{titleUrl,jdbcType=VARCHAR}, #{summary,jdbcType=LONGVARCHAR})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Activity" >
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Activity" >
|
|
|
insert into activity
|
|
insert into activity
|
|
@@ -106,8 +106,8 @@
|
|
|
<if test="titleUrl != null" >
|
|
<if test="titleUrl != null" >
|
|
|
title_url,
|
|
title_url,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="desc != null" >
|
|
|
|
|
- desc,
|
|
|
|
|
|
|
+ <if test="summary != null" >
|
|
|
|
|
+ summary,
|
|
|
</if>
|
|
</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
@@ -159,8 +159,8 @@
|
|
|
<if test="titleUrl != null" >
|
|
<if test="titleUrl != null" >
|
|
|
#{titleUrl,jdbcType=VARCHAR},
|
|
#{titleUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="desc != null" >
|
|
|
|
|
- #{desc,jdbcType=LONGVARCHAR},
|
|
|
|
|
|
|
+ <if test="summary != null" >
|
|
|
|
|
+ #{summary,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
@@ -212,8 +212,8 @@
|
|
|
<if test="titleUrl != null" >
|
|
<if test="titleUrl != null" >
|
|
|
title_url = #{titleUrl,jdbcType=VARCHAR},
|
|
title_url = #{titleUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="desc != null" >
|
|
|
|
|
- desc = #{desc,jdbcType=LONGVARCHAR},
|
|
|
|
|
|
|
+ <if test="summary != null" >
|
|
|
|
|
+ summary = #{summary,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
@@ -235,7 +235,7 @@
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
enroll_deadline = #{enrollDeadline,jdbcType=TIMESTAMP},
|
|
enroll_deadline = #{enrollDeadline,jdbcType=TIMESTAMP},
|
|
|
title_url = #{titleUrl,jdbcType=VARCHAR},
|
|
title_url = #{titleUrl,jdbcType=VARCHAR},
|
|
|
- desc = #{desc,jdbcType=LONGVARCHAR}
|
|
|
|
|
|
|
+ summary = #{summary,jdbcType=LONGVARCHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.Activity" >
|
|
<update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.Activity" >
|