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