|
|
@@ -17,6 +17,7 @@
|
|
|
<result column="content_keyword" property="contentKeyword" /><!--关键字 -->
|
|
|
<result column="content_details" property="contentDetails" /><!--文章内容 -->
|
|
|
<result column="content_url" property="contentUrl" /><!--文章跳转链接地址 -->
|
|
|
+ <result column="content_hit" property="contentHit" /><!--点击次数 -->
|
|
|
<result column="appid" property="appid" /><!--文章管理的应用id -->
|
|
|
<result column="create_by" property="createBy" /><!--创建人 -->
|
|
|
<result column="create_date" property="createDate" /><!--创建时间 -->
|
|
|
@@ -43,6 +44,7 @@
|
|
|
<if test="contentKeyword != null and contentKeyword != ''">content_keyword,</if>
|
|
|
<if test="contentDetails != null and contentDetails != ''">content_details,</if>
|
|
|
<if test="contentUrl != null and contentUrl != ''">content_url,</if>
|
|
|
+ <if test="contentHit != null">content_hit,</if>
|
|
|
<if test="appid != null">appid,</if>
|
|
|
<if test="createBy > 0">create_by,</if>
|
|
|
<if test="createDate != null">create_date,</if>
|
|
|
@@ -64,6 +66,7 @@
|
|
|
<if test="contentKeyword != null and contentKeyword != ''">#{contentKeyword},</if>
|
|
|
<if test="contentDetails != null and contentDetails != ''">#{contentDetails},</if>
|
|
|
<if test="contentUrl != null and contentUrl != ''">#{contentUrl},</if>
|
|
|
+ <if test="contentHit != null">#{contentHit},</if>
|
|
|
<if test="appid != null">#{appid},</if>
|
|
|
<if test="createBy > 0">#{createBy},</if>
|
|
|
<if test="createDate != null">#{createDate},</if>
|
|
|
@@ -90,6 +93,7 @@
|
|
|
<if test="contentKeyword != null and contentKeyword != ''">content_keyword=#{contentKeyword},</if>
|
|
|
<if test="contentDetails != null and contentDetails != ''">content_details=#{contentDetails},</if>
|
|
|
<if test="contentUrl != null and contentUrl != ''">content_url=#{contentUrl},</if>
|
|
|
+ <if test="contentHit != null">content_hit=#{contentHit},</if>
|
|
|
<if test="appid != null">appid=#{appid},</if>
|
|
|
<if test="createBy > 0">create_by=#{createBy},</if>
|
|
|
<if test="createDate != null">create_date=#{createDate},</if>
|
|
|
@@ -122,6 +126,7 @@
|
|
|
<if test="contentKeyword != null and contentKeyword != ''">and content_keyword=#{contentKeyword}</if>
|
|
|
<if test="contentDetails != null and contentDetails != ''">and content_details=#{contentDetails}</if>
|
|
|
<if test="contentUrl != null and contentUrl != ''">and content_url=#{contentUrl}</if>
|
|
|
+ <if test="contentHit != null">and content_hit=#{contentHit}</if>
|
|
|
<if test="appid != null"> and appid=#{appid} </if>
|
|
|
<if test="createBy > 0"> and create_by=#{createBy} </if>
|
|
|
<if test="createDate != null"> and create_date=#{createDate} </if>
|
|
|
@@ -156,7 +161,7 @@
|
|
|
<where>
|
|
|
<if test="contentTitle != null and contentTitle != ''"> and content_title like CONCAT('%',#{contentTitle},'%')</if>
|
|
|
<if test="contentCategoryId != null and contentCategoryId != ''"> and content_category_id=#{contentCategoryId}</if>
|
|
|
- <if test="contentType != null and contentType != ''"> and content_type=#{contentType}</if>
|
|
|
+ <if test="contentType != null and contentType != ''"> and content_type LIKE CONCAT('%',#{contentType},'%')</if>
|
|
|
<if test="contentDisplay != null and contentDisplay != ''"> and content_display=#{contentDisplay}</if>
|
|
|
<if test="contentAuthor != null and contentAuthor != ''"> and content_author=#{contentAuthor}</if>
|
|
|
<if test="contentSource != null and contentSource != ''"> and content_source=#{contentSource}</if>
|
|
|
@@ -167,6 +172,7 @@
|
|
|
<if test="contentKeyword != null and contentKeyword != ''"> and content_keyword=#{contentKeyword}</if>
|
|
|
<if test="contentDetails != null and contentDetails != ''"> and content_details=#{contentDetails}</if>
|
|
|
<if test="contentUrl != null and contentUrl != ''"> and content_url=#{contentUrl}</if>
|
|
|
+ <if test="contentHit != null"> and content_hit=#{contentHit}</if>
|
|
|
<if test="appid != null"> and appid=#{appid} </if>
|
|
|
<if test="createBy > 0"> and create_by=#{createBy} </if>
|
|
|
<if test="createDate != null"> and create_date=#{createDate} </if>
|