浏览代码

fix 根据文章类型查询文章

zwhui 2 年之前
父节点
当前提交
1b8f289b3a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      netflix-dao/src/main/resources/mapper/InformationMapper.xml

+ 1 - 1
netflix-dao/src/main/resources/mapper/InformationMapper.xml

@@ -8,7 +8,7 @@
         select title,thumbnail,created_time,content from information where status is true and deleted is true
         <choose>
             <when test="categoryId != null">
-                and JSON_CONTAINS(category_ids,'${categoryId}') = 1
+                and JSON_CONTAINS(category_ids,'"${categoryId}"') = 1
             </when>
             <otherwise>
                 and recommend is true