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