Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
00901428
Commit
00901428
authored
Nov 21, 2020
by
wujj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
字段规范
parent
b4dedc1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
IContentDao.xml
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
+4
-5
No files found.
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 (c
ategory_id=#{categoryId} or
category_id in
<if
test=
"categoryId != null and categoryId != ''"
>
and (c
t.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 c
t.c
ategory_id = c.id
where ct.del=0
<!-- 查询子栏目数据 -->
<if
test=
"categoryId > 0"
>
and (c
ategory_id=#{categoryId} or
category_id in
and (c
t.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
Markdown
is supported
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