소스 검색

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