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
8f5b0adf
Commit
8f5b0adf
authored
Nov 02, 2020
by
sgjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改别名
parent
64a749e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
IContentDao.xml
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
+5
-5
No files found.
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
View file @
8f5b0adf
...
@@ -254,10 +254,10 @@
...
@@ -254,10 +254,10 @@
<!-- 根据站点编号、开始、结束时间和栏目编号查询文章编号集合 -->
<!-- 根据站点编号、开始、结束时间和栏目编号查询文章编号集合 -->
<select
id=
"queryIdsByCategoryIdForParser"
resultMap=
"resultBean"
>
<select
id=
"queryIdsByCategoryIdForParser"
resultMap=
"resultBean"
>
select
select
c
ms_conten
t.id article_id,c.*
ct.id article_id,c.*
FROM cms_content ct
FROM cms_content ct
LEFT JOIN cms_category c ON content_category_id = c.id
LEFT JOIN cms_category c ON content_category_id = c.id
where c
ms_conten
t.del=0
where ct.del=0
<!-- 查询子栏目数据 -->
<!-- 查询子栏目数据 -->
<if
test=
"contentCategoryId > 0"
>
<if
test=
"contentCategoryId > 0"
>
...
@@ -271,17 +271,17 @@
...
@@ -271,17 +271,17 @@
and content_datetime
>
= #{endTime}
and content_datetime
>
= #{endTime}
</if>
</if>
<if
test=
"flag!=null and flag!=''"
>
<if
test=
"flag!=null and flag!=''"
>
and c
ms_conten
t.content_type in ( #{flag})
and ct.content_type in ( #{flag})
</if>
</if>
<if
test=
"noflag!=null and noflag!=''"
>
<if
test=
"noflag!=null and noflag!=''"
>
and (c
ms_content.content_type not in ( #{noflag} ) or cms_conten
t.content_type is null)
and (c
t.content_type not in ( #{noflag} ) or c
t.content_type is null)
</if>
</if>
<if
test=
"orderBy!=null and orderBy!='' "
>
<if
test=
"orderBy!=null and orderBy!='' "
>
<if
test=
"orderBy=='date'"
>
ORDER BY content_datetime
</if>
<if
test=
"orderBy=='date'"
>
ORDER BY content_datetime
</if>
<if
test=
"orderBy=='hit'"
>
ORDER BY content_hit
</if>
<if
test=
"orderBy=='hit'"
>
ORDER BY content_hit
</if>
<if
test=
"orderBy=='sort'"
>
ORDER BY content_sort
</if>
<if
test=
"orderBy=='sort'"
>
ORDER BY content_sort
</if>
<if
test=
"orderBy!='date' and orderBy!='hit' and orderBy!='sort'"
>
<if
test=
"orderBy!='date' and orderBy!='hit' and orderBy!='sort'"
>
ORDER BY c
ms_conten
t.id
ORDER BY ct.id
</if>
</if>
<choose>
<choose>
<when
test=
"order!=null and order!=''"
>
<when
test=
"order!=null and order!=''"
>
...
...
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