Browse Source

根据标签查询列表

master
zhaoqifeng 5 years ago
parent
commit
b5b662036c
  1. 4
      epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/ArticleDao.xml

4
epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/ArticleDao.xml

@ -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}
)
</foreach>

Loading…
Cancel
Save