|
|
@@ -22,6 +22,7 @@
|
|
|
<result column="province" jdbcType="INTEGER" property="province" />
|
|
|
<result column="city" jdbcType="INTEGER" property="city" />
|
|
|
<result column="release_date" jdbcType="TIMESTAMP" property="releaseDate" />
|
|
|
+ <result column="keyword" jdbcType="VARCHAR" property="keyword" />
|
|
|
</resultMap>
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.goafanti.common.model.Policy">
|
|
|
<!--
|
|
|
@@ -106,7 +107,7 @@
|
|
|
This element was generated on Thu Jun 28 16:23:43 CST 2018.
|
|
|
-->
|
|
|
id, create_time as createTime, edit_time as editTime, title, title_img as titleImg, author, type, source, source_url as sourceUrl, summary,
|
|
|
- audit_status as auditStatus, hot, province, city, release_date as releaseDate
|
|
|
+ audit_status as auditStatus, hot, province, city, release_date as releaseDate,keyword
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
<!--
|
|
|
@@ -199,13 +200,13 @@
|
|
|
type, source, source_url,
|
|
|
summary, audit_status, hot,
|
|
|
province, city, release_date,
|
|
|
- content)
|
|
|
+ content,keyword)
|
|
|
values (#{id,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{editTime,jdbcType=TIMESTAMP},
|
|
|
#{title,jdbcType=VARCHAR}, #{titleImg,jdbcType=VARCHAR}, #{author,jdbcType=VARCHAR},
|
|
|
#{type,jdbcType=INTEGER}, #{source,jdbcType=VARCHAR}, #{sourceUrl,jdbcType=VARCHAR},
|
|
|
#{summary,jdbcType=VARCHAR}, #{auditStatus,jdbcType=INTEGER}, #{hot,jdbcType=INTEGER},
|
|
|
#{province,jdbcType=INTEGER}, #{city,jdbcType=INTEGER}, #{releaseDate,jdbcType=TIMESTAMP},
|
|
|
- #{content,jdbcType=LONGVARCHAR})
|
|
|
+ #{content,jdbcType=LONGVARCHAR},#{keyword,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Policy">
|
|
|
<!--
|
|
|
@@ -263,6 +264,9 @@
|
|
|
<if test="content != null">
|
|
|
content,
|
|
|
</if>
|
|
|
+ <if test="keyword != null">
|
|
|
+ keyword,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -313,6 +317,9 @@
|
|
|
<if test="content != null">
|
|
|
#{content,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
+ <if test="keyword != null">
|
|
|
+ #{keyword,jdbcType=VARHCAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.goafanti.common.model.PolicyExample" resultType="java.lang.Long">
|
|
|
@@ -382,6 +389,9 @@
|
|
|
<if test="record.content != null">
|
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
+ <if test="keyword != null">
|
|
|
+ keyword= #{keyword,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -409,7 +419,8 @@
|
|
|
province = #{record.province,jdbcType=INTEGER},
|
|
|
city = #{record.city,jdbcType=INTEGER},
|
|
|
release_date = #{record.releaseDate,jdbcType=TIMESTAMP},
|
|
|
- content = #{record.content,jdbcType=LONGVARCHAR}
|
|
|
+ content = #{record.content,jdbcType=LONGVARCHAR},
|
|
|
+ keyword= #{keyword,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
@@ -435,7 +446,8 @@
|
|
|
hot = #{record.hot,jdbcType=INTEGER},
|
|
|
province = #{record.province,jdbcType=INTEGER},
|
|
|
city = #{record.city,jdbcType=INTEGER},
|
|
|
- release_date = #{record.releaseDate,jdbcType=TIMESTAMP}
|
|
|
+ release_date = #{record.releaseDate,jdbcType=TIMESTAMP},
|
|
|
+ keyword= #{keyword,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
@@ -493,6 +505,9 @@
|
|
|
<if test="content != null">
|
|
|
content = #{content,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
+ <if test="keyword != null">
|
|
|
+ keyword= #{keyword,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
@@ -517,7 +532,8 @@
|
|
|
province = #{province,jdbcType=INTEGER},
|
|
|
city = #{city,jdbcType=INTEGER},
|
|
|
release_date = #{releaseDate,jdbcType=TIMESTAMP},
|
|
|
- content = #{content,jdbcType=LONGVARCHAR}
|
|
|
+ content = #{content,jdbcType=LONGVARCHAR},
|
|
|
+ keyword= #{keyword,jdbcType=VARCHAR},
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.Policy">
|
|
|
@@ -540,7 +556,8 @@
|
|
|
hot = #{hot,jdbcType=INTEGER},
|
|
|
province = #{province,jdbcType=INTEGER},
|
|
|
city = #{city,jdbcType=INTEGER},
|
|
|
- release_date = #{releaseDate,jdbcType=TIMESTAMP}
|
|
|
+ release_date = #{releaseDate,jdbcType=TIMESTAMP},
|
|
|
+ keyword= #{keyword,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
<select id="findPolicyByPageAndPublishPages" resultType="com.goafanti.news.bo.PolicyResult">
|