From d5ec6b835099c8f971ab1edbf99c6b5dcec08c3e Mon Sep 17 00:00:00 2001 From: mingsoft Date: Sat, 23 Oct 2021 16:42:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/net/mingsoft/cms/dao/IContentDao.xml | 9 +++++++-- src/main/webapp/WEB-INF/manager/cms/category/form.ftl | 2 +- src/main/webapp/WEB-INF/manager/cms/category/index.ftl | 1 + src/main/webapp/WEB-INF/manager/cms/content/main.ftl | 5 +++-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/mingsoft/cms/dao/IContentDao.xml b/src/main/java/net/mingsoft/cms/dao/IContentDao.xml index 46b61f66..14223f99 100755 --- a/src/main/java/net/mingsoft/cms/dao/IContentDao.xml +++ b/src/main/java/net/mingsoft/cms/dao/IContentDao.xml @@ -219,8 +219,13 @@ and content_title like CONCAT(CONCAT('%',#{contentTitle}),'%') and (ct.category_id=#{categoryId} or ct.category_id in (select id FROM cms_category where find_in_set('${categoryId}',CATEGORY_PARENT_IDS)>0)) - and cc.category_type=#{categoryType} - and content_type LIKE CONCAT(CONCAT('%',#{contentType}),'%') + + and + + FIND_IN_SET('${item}',ct.content_type)>0 + + and content_display=#{contentDisplay} and content_author=#{contentAuthor} and content_source=#{contentSource} diff --git a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl index 63403698..41b393eb 100644 --- a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl @@ -221,7 +221,7 @@
只能上传1张图片 - 标签:${'$'}<#noparse >{@ms:file field.typelitpic/}
+ 标签:<#noparse>{@ms:file field.typelitpic/}
diff --git a/src/main/webapp/WEB-INF/manager/cms/category/index.ftl b/src/main/webapp/WEB-INF/manager/cms/category/index.ftl index 11d4ee4b..131e6cbf 100644 --- a/src/main/webapp/WEB-INF/manager/cms/category/index.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/category/index.ftl @@ -271,6 +271,7 @@ }).then(function (res) { if (res.result) { that.$notify({ + title: '成功 ', type: 'success', message: '删除成功!' }); //删除成功,刷新列表 diff --git a/src/main/webapp/WEB-INF/manager/cms/content/main.ftl b/src/main/webapp/WEB-INF/manager/cms/content/main.ftl index 14780904..e3f18b1d 100644 --- a/src/main/webapp/WEB-INF/manager/cms/content/main.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/content/main.ftl @@ -33,8 +33,8 @@ - - +