فهرست منبع

获取文章标签列表查询修改为精确搜索

fangqing 6 ماه پیش
والد
کامیت
9ef890800f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      ruoyi-generator/src/main/resources/mapper/community/ArticleMapper.xml

+ 1 - 1
ruoyi-generator/src/main/resources/mapper/community/ArticleMapper.xml

@@ -187,7 +187,7 @@
             <if test="communityArticle.tags != null and communityArticle.tags.size > 0">
                 AND f.tag_id in
                 <foreach collection="communityArticle.tags" item="tags" index="index" open="(" close=")" separator=",">
-                    ( select distinct  id from  community_tag where tag_name   like  concat('%',  #{tags}, '%')  )
+                    ( select distinct  id from  community_tag where tag_name   =  #{tags}  )
                 </foreach>
             </if>