|
@@ -13,13 +13,14 @@
|
|
|
<result column="source" jdbcType="VARCHAR" property="source" />
|
|
<result column="source" jdbcType="VARCHAR" property="source" />
|
|
|
<result column="source_url" jdbcType="VARCHAR" property="sourceUrl" />
|
|
<result column="source_url" jdbcType="VARCHAR" property="sourceUrl" />
|
|
|
<result column="summary" jdbcType="VARCHAR" property="summary" />
|
|
<result column="summary" jdbcType="VARCHAR" property="summary" />
|
|
|
|
|
+ <result column="jmrh_flag" jdbcType="INTEGER" property="jmrhFlag" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.goafanti.common.model.News">
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.goafanti.common.model.News">
|
|
|
<result column="content" jdbcType="LONGVARCHAR" property="content" />
|
|
<result column="content" jdbcType="LONGVARCHAR" property="content" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
id, create_time, edit_time, title, title_img, author, type, hot, source, source_url,
|
|
id, create_time, edit_time, title, title_img, author, type, hot, source, source_url,
|
|
|
- summary
|
|
|
|
|
|
|
+ summary,jmrh_flag
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
<sql id="Blob_Column_List">
|
|
|
content
|
|
content
|
|
@@ -40,12 +41,13 @@
|
|
|
insert into news (id, create_time, edit_time,
|
|
insert into news (id, create_time, edit_time,
|
|
|
title, title_img, author,
|
|
title, title_img, author,
|
|
|
type, hot, source,
|
|
type, hot, source,
|
|
|
- source_url, summary, content
|
|
|
|
|
|
|
+ source_url, summary, content,jmrh_flag
|
|
|
)
|
|
)
|
|
|
values (#{id,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{editTime,jdbcType=TIMESTAMP},
|
|
values (#{id,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{editTime,jdbcType=TIMESTAMP},
|
|
|
#{title,jdbcType=VARCHAR}, #{titleImg,jdbcType=VARCHAR}, #{author,jdbcType=VARCHAR},
|
|
#{title,jdbcType=VARCHAR}, #{titleImg,jdbcType=VARCHAR}, #{author,jdbcType=VARCHAR},
|
|
|
#{type,jdbcType=INTEGER}, #{hot,jdbcType=INTEGER}, #{source,jdbcType=VARCHAR},
|
|
#{type,jdbcType=INTEGER}, #{hot,jdbcType=INTEGER}, #{source,jdbcType=VARCHAR},
|
|
|
- #{sourceUrl,jdbcType=VARCHAR}, #{summary,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR}
|
|
|
|
|
|
|
+ #{sourceUrl,jdbcType=VARCHAR}, #{summary,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR},
|
|
|
|
|
+ #{jmrhFlag,jdbcType=INTEGER}
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.News">
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.News">
|
|
@@ -87,6 +89,9 @@
|
|
|
<if test="content != null">
|
|
<if test="content != null">
|
|
|
content,
|
|
content,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="jmrhFlag != null">
|
|
|
|
|
+ jmrhFlag,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
@@ -125,6 +130,9 @@
|
|
|
<if test="content != null">
|
|
<if test="content != null">
|
|
|
#{content,jdbcType=LONGVARCHAR},
|
|
#{content,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="jmrhFlag != null">
|
|
|
|
|
+ #{content,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.News">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.News">
|
|
@@ -163,6 +171,9 @@
|
|
|
<if test="content != null">
|
|
<if test="content != null">
|
|
|
content = #{content,jdbcType=LONGVARCHAR},
|
|
content = #{content,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="jmrhFlag != null">
|
|
|
|
|
+ content = #{jmrhFlag,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
</update>
|
|
@@ -178,7 +189,8 @@
|
|
|
source = #{source,jdbcType=VARCHAR},
|
|
source = #{source,jdbcType=VARCHAR},
|
|
|
source_url = #{sourceUrl,jdbcType=VARCHAR},
|
|
source_url = #{sourceUrl,jdbcType=VARCHAR},
|
|
|
summary = #{summary,jdbcType=VARCHAR},
|
|
summary = #{summary,jdbcType=VARCHAR},
|
|
|
- content = #{content,jdbcType=LONGVARCHAR}
|
|
|
|
|
|
|
+ content = #{content,jdbcType=LONGVARCHAR},
|
|
|
|
|
+ jmrh_flag = #{jmrhFlag,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.News">
|
|
<update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.News">
|
|
@@ -192,7 +204,8 @@
|
|
|
hot = #{hot,jdbcType=INTEGER},
|
|
hot = #{hot,jdbcType=INTEGER},
|
|
|
source = #{source,jdbcType=VARCHAR},
|
|
source = #{source,jdbcType=VARCHAR},
|
|
|
source_url = #{sourceUrl,jdbcType=VARCHAR},
|
|
source_url = #{sourceUrl,jdbcType=VARCHAR},
|
|
|
- summary = #{summary,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ summary = #{summary,jdbcType=VARCHAR},
|
|
|
|
|
+ jmrh_flag = #{jmrhFlag,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|