Quellcode durchsuchen

fix 根据文章类型查询文章

zwhui vor 2 Jahren
Ursprung
Commit
1b8f289b3a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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