|
|
@@ -12,6 +12,7 @@
|
|
|
<result column="row_id" jdbcType="VARCHAR" property="rowId" />
|
|
|
<result column="title" jdbcType="VARCHAR" property="title" />
|
|
|
<result column="keyword" jdbcType="VARCHAR" property="keyword" />
|
|
|
+ <result column="summary" jdbcType="VARCHAR" property="summary" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
|
@@ -87,7 +88,7 @@
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
This element was generated on Mon Sep 10 14:08:59 CST 2018.
|
|
|
-->
|
|
|
- id, from_table, row_id, title, keyword
|
|
|
+ id, from_table, row_id, title, keyword, summary
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.JtCollectSearchExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
@@ -173,6 +174,9 @@
|
|
|
<if test="keyword != null">
|
|
|
keyword,
|
|
|
</if>
|
|
|
+ <if test="summary != null">
|
|
|
+ summary,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -190,6 +194,9 @@
|
|
|
<if test="keyword != null">
|
|
|
#{keyword,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="summary != null">
|
|
|
+ #{summary,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.goafanti.common.model.JtCollectSearchExample" resultType="java.lang.Long">
|
|
|
@@ -226,6 +233,9 @@
|
|
|
<if test="record.keyword != null">
|
|
|
keyword = #{record.keyword,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.summary != null">
|
|
|
+ summary = #{record.summary,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -242,7 +252,8 @@
|
|
|
from_table = #{record.fromTable,jdbcType=VARCHAR},
|
|
|
row_id = #{record.rowId,jdbcType=VARCHAR},
|
|
|
title = #{record.title,jdbcType=VARCHAR},
|
|
|
- keyword = #{record.keyword,jdbcType=VARCHAR}
|
|
|
+ keyword = #{record.keyword,jdbcType=VARCHAR},
|
|
|
+ summary = #{record.summary,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
@@ -267,6 +278,9 @@
|
|
|
<if test="keyword != null">
|
|
|
keyword = #{keyword,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="summary != null">
|
|
|
+ summary = #{summary,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -280,7 +294,8 @@
|
|
|
set from_table = #{fromTable,jdbcType=VARCHAR},
|
|
|
row_id = #{rowId,jdbcType=VARCHAR},
|
|
|
title = #{title,jdbcType=VARCHAR},
|
|
|
- keyword = #{keyword,jdbcType=VARCHAR}
|
|
|
+ keyword = #{keyword,jdbcType=VARCHAR},
|
|
|
+ summary = #{summary,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<delete id="deleteByrowId" parameterType="java.lang.String">
|
|
|
@@ -288,7 +303,7 @@
|
|
|
where row_id = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
<select id="globalSearchList" parameterType="String" resultType="com.goafanti.common.model.JtCollectSearch">
|
|
|
- select id,from_table as fromTable,row_id as rowId,title,keyword from jt_collect_search
|
|
|
+ select id,from_table as fromTable,row_id as rowId,title,keyword,summary from jt_collect_search
|
|
|
where 1=1
|
|
|
<if test="name !=null">
|
|
|
and title like CONCAT('%',#{name,jdbcType=VARCHAR},'%')
|
|
|
@@ -297,7 +312,7 @@
|
|
|
and from_table in ('achievement','demand')
|
|
|
</if>
|
|
|
union
|
|
|
- select id,from_table,row_id,title,keyword from jt_collect_search
|
|
|
+ select id,from_table,row_id,title,keyword,summary from jt_collect_search
|
|
|
where 1=1
|
|
|
<if test="name !=null">
|
|
|
and keyword like CONCAT('%',#{name,jdbcType=VARCHAR},'%')
|
|
|
@@ -305,6 +320,7 @@
|
|
|
<if test="AchievementDemand == 1">
|
|
|
and from_table in ('achievement','demand')
|
|
|
</if>
|
|
|
+ order by id desc
|
|
|
<if test="page_sql!=null">
|
|
|
${page_sql}
|
|
|
</if>
|