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
d5ec6b83
Commit
d5ec6b83
authored
Oct 23, 2021
by
mingsoft
Browse files
优化搜索
parent
46b12719
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
View file @
d5ec6b83
...
...
@@ -219,8 +219,13 @@
<if
test=
"contentTitle != null and contentTitle != ''"
>
and content_title like CONCAT(CONCAT('%',#{contentTitle}),'%')
</if>
<if
test=
"categoryId != null and categoryId != ''"
>
and (ct.category_id=#{categoryId} or ct.category_id in
(select id FROM cms_category where find_in_set('${categoryId}',CATEGORY_PARENT_IDS)>0))
</if>
<if
test=
"categoryType != null and categoryType != ''"
>
and cc.category_type=#{categoryType}
</if>
<if
test=
"contentType != null and contentType != ''"
>
and content_type LIKE CONCAT(CONCAT('%',#{contentType}),'%')
</if>
<if
test=
"contentType != null and contentType != ''"
>
and
<foreach
item=
"item"
index=
"index"
collection=
"contentType.split(',')"
open=
"("
separator=
"or"
close=
")"
>
FIND_IN_SET('${item}',ct.content_type)>0
</foreach>
</if>
<if
test=
"contentDisplay != null and contentDisplay != ''"
>
and content_display=#{contentDisplay}
</if>
<if
test=
"contentAuthor != null and contentAuthor != ''"
>
and content_author=#{contentAuthor}
</if>
<if
test=
"contentSource != null and contentSource != ''"
>
and content_source=#{contentSource}
</if>
...
...
src/main/webapp/WEB-INF/manager/cms/category/form.ftl
View file @
d5ec6b83
...
...
@@ -221,7 +221,7 @@
<i class="el-icon-plus"></i>
<div slot="tip" class="ms-form-tip">
只能上传1张图片
标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">
$
{
'$'
}
<#noparse
>
{
@
ms
:
file
field
.typelitpic
/
}
</#noparse></a><br/>
标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank"><#noparse>
{
@
ms
:
file
field
.typelitpic
/
}
</#noparse></a><br/>
</div>
</el-upload>
</el-form-item>
...
...
src/main/webapp/WEB-INF/manager/cms/category/index.ftl
View file @
d5ec6b83
...
...
@@ -271,6 +271,7 @@
}
).then(function (res)
{
if
(
res
.result
)
{
that
.
$notify
({
title
:
'成功
'
,
type
:
'
success
'
,
message
:
'删除成功!'
})
;
//删除成功,刷新列表
...
...
src/main/webapp/WEB-INF/manager/cms/content/main.ftl
View file @
d5ec6b83
...
...
@@ -33,8 +33,8 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="文章类型" prop="c
ategoryFlag
">
<el-select v-model="form.c
ategoryFlag
"
<el-form-item label="文章类型" prop="c
ontentType
">
<el-select v-model="form.c
ontentType
"
:style="
{
width
:
'
100
%'
}
"
:filterable="false"
:disabled="false"
...
...
@@ -349,6 +349,7 @@
}
).then(function (res)
{
if
(
res
.result
)
{
that
.
$notify
({
title
:
'成功'
,
type
:
'
success
'
,
message
:
'删除成功!'
})
;
//删除成功,刷新列表
...
...
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