From d278bcd87ebfc7f19058f47f11b736dffe4fbe98 Mon Sep 17 00:00:00 2001 From: xierz Date: Sat, 21 Nov 2020 12:49:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4dao=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/net/mingsoft/cms/dao/IContentDao.xml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main/java/net/mingsoft/cms/dao/IContentDao.xml b/src/main/java/net/mingsoft/cms/dao/IContentDao.xml index 1d195aeb..7157ac76 100644 --- a/src/main/java/net/mingsoft/cms/dao/IContentDao.xml +++ b/src/main/java/net/mingsoft/cms/dao/IContentDao.xml @@ -219,7 +219,7 @@ ct.del=0 and content_title like CONCAT('%',#{contentTitle},'%') and (ct.category_id=#{categoryId} or ct.category_id in - (select id FROM cms_category where )) + (select id FROM cms_category where find_in_set('${categoryId}',CATEGORY_PARENT_ID))) and content_type LIKE CONCAT('%',#{contentType},'%') and content_display=#{contentDisplay} and content_author=#{contentAuthor} @@ -240,15 +240,6 @@ )ct ORDER BY ct.content_datetime desc,content_sort desc - - find_in_set('${categoryId}',CATEGORY_PARENT_ID) - - - instr(','||'${categoryId}'||',', ','||CATEGORY_PARENT_ID||',')>0 - - - CHARINDEX(','+'${categoryId}'+',' , ','+CATEGORY_PARENT_ID +',')>0 -