@ -114,13 +114,15 @@
apr.GRID_ID = #{gridId}
</foreach>
) t
WHERE
1 = 1
<if test="tagIdList !=null and tagIdList.size() > 0">
<foreach collection="tagIdList" item="tagId" separator=" ">
AND EXISTS(
SELECT 1
FROM ARTICLE_TAGS
WHERE DEL_FLAG = '0'
AND ARTICLE_ID = a.ID
AND ARTICLE_ID = t.articleId
AND TAG_ID=#{tagId}
)