소스 검색

修改获取新闻新闻内容为空bug

xusonglin 5 년 전
부모
커밋
1ade2b0152
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/resources/mapper/NewsArticleMapper.xml

+ 1 - 1
src/main/resources/mapper/NewsArticleMapper.xml

@@ -38,7 +38,7 @@
             news_article as newsArticle
         left join photo on newsArticle.photo_id = photo.id
         <where>
-            and newsArticle.activated = 1 and photo.activated = 1
+            and newsArticle.activated = 1
             <if test="query.title != null and query.title != ''">
                 and newsArticle.title like CONCAT('%',#{query.title},'%')
             </if>