Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
00901428
Commit
00901428
authored
Nov 21, 2020
by
wujj
Browse files
字段规范
parent
b4dedc1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
View file @
00901428
...
...
@@ -18,7 +18,6 @@
<result
column=
"content_details"
property=
"contentDetails"
/>
<!--文章内容 -->
<result
column=
"content_url"
property=
"contentUrl"
/>
<!--文章跳转链接地址 -->
<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"
/>
<!--修改人 -->
...
...
@@ -219,7 +218,7 @@
<where>
ct.del=0
<if
test=
"contentTitle != null and contentTitle != ''"
>
and content_title like CONCAT('%',#{contentTitle},'%')
</if>
<if
test=
"categoryId != null and categoryId != ''"
>
and (category_id=#{categoryId} or category_id in
<if
test=
"categoryId != null and categoryId != ''"
>
and (
ct.
category_id=#{categoryId} or
ct.
category_id in
(select id FROM cms_category where
<include
refid=
"queryWhereCategoryId"
></include>
))
</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>
...
...
@@ -256,12 +255,12 @@
select
ct.id article_id,c.*
FROM cms_content ct
LEFT JOIN cms_category c ON category_id = c.id
LEFT JOIN cms_category c ON
ct.
category_id = c.id
where ct.del=0
<!-- 查询子栏目数据 -->
<if
test=
"categoryId > 0"
>
and (category_id=#{categoryId} or category_id in
and (
ct.
category_id=#{categoryId} or
ct.
category_id in
(select id FROM cms_category where
<include
refid=
"queryWhereCategoryId"
></include>
))
</if>
<if
test=
"beginTime!=null and beginTime!=''"
>
...
...
@@ -305,7 +304,7 @@
<where>
a.del=0
<if
test=
"ids!=null and ids!=''"
>
and FIND_IN_SET(category_id,#{ids})
and FIND_IN_SET(
a.
category_id,#{ids})
</if>
<if
test=
"map.content_title!=null"
>
and a.content_title like CONCAT("%",#{map.content_title},"%")
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment