|
|
@@ -43,7 +43,6 @@
|
|
|
<result column="content_url" property="contentUrl" /><!--文章跳转链接地址 -->
|
|
|
<result column="static_url" property="staticUrl" /><!--静态地址 -->
|
|
|
<result column="content_hit" property="contentHit" /><!--点击次数 -->
|
|
|
- <result column="app_id" property="appId" /><!--文章管理的应用id -->
|
|
|
<result column="create_by" property="createBy" /><!--创建人 -->
|
|
|
<result column="create_date" property="createDate" /><!--创建时间 -->
|
|
|
<result column="update_by" property="updateBy" /><!--修改人 -->
|
|
|
@@ -67,7 +66,6 @@
|
|
|
<result column="mdiy_model_id" property="mdiyModelId" /><!--栏目管理的内容模型id -->
|
|
|
<result column="category_datetime" property="categoryDatetime" /><!--类别发布时间 -->
|
|
|
<result column="category_manager_id" property="categoryManagerId" /><!--发布用户id -->
|
|
|
- <result column="app_id" property="appId" /><!--应用编号 -->
|
|
|
<result column="dict_id" property="dictId" /><!--字典对应编号 -->
|
|
|
<result column="category_flag" property="categoryFlag" /><!--栏目属性 -->
|
|
|
<result column="category_path" property="categoryPath" /><!--栏目路径 -->
|
|
|
@@ -98,7 +96,6 @@
|
|
|
<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">app_id,</if>
|
|
|
<if test="createBy > 0">create_by,</if>
|
|
|
<if test="createDate != null">create_date,</if>
|
|
|
<if test="updateBy > 0">update_by,</if>
|
|
|
@@ -120,7 +117,6 @@
|
|
|
<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>
|
|
|
<if test="updateBy > 0">#{updateBy},</if>
|
|
|
@@ -147,7 +143,6 @@
|
|
|
<if test="contentDetails != null ">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">app_id=#{appId},</if>
|
|
|
<if test="createBy > 0">create_by=#{createBy},</if>
|
|
|
<if test="createDate != null">create_date=#{createDate},</if>
|
|
|
<if test="updateBy > 0">update_by=#{updateBy},</if>
|
|
|
@@ -181,7 +176,6 @@
|
|
|
<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 app_id=#{appId} </if>
|
|
|
<if test="createBy > 0"> and create_by=#{createBy} </if>
|
|
|
<if test="createDate != null"> and create_date=#{createDate} </if>
|
|
|
<if test="updateBy > 0"> and update_by=#{updateBy} </if>
|
|
|
@@ -239,7 +233,6 @@
|
|
|
<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 ct.app_id=#{appId} </if>
|
|
|
<if test="createBy > 0"> and ct.create_by=#{createBy} </if>
|
|
|
<if test="createDate != null"> and ct.create_date=#{createDate} </if>
|
|
|
<if test="updateBy > 0"> and ct.update_by=#{updateBy} </if>
|
|
|
@@ -265,9 +258,7 @@
|
|
|
FROM cms_content
|
|
|
LEFT JOIN cms_category c ON content_category_id = c.id
|
|
|
where cms_content.del=0
|
|
|
- <if test="appId > 0">
|
|
|
- and cms_content.app_id = #{appId}
|
|
|
- </if>
|
|
|
+
|
|
|
<!-- 查询子栏目数据 -->
|
|
|
<if test="contentCategoryId > 0">
|
|
|
and (content_category_id=#{contentCategoryId} or content_category_id in
|
|
|
@@ -312,7 +303,7 @@
|
|
|
<if test="tableName!=null and tableName!='' and diyMap!=null">left join ${tableName} d on d.link_id=a.id
|
|
|
</if>
|
|
|
<where>
|
|
|
- a.del=0 and a.app_id = #{websiteId}
|
|
|
+ a.del=0
|
|
|
<if test="ids!=null and ids!=''">
|
|
|
and FIND_IN_SET(content_category_id,#{ids})
|
|
|
</if>
|