Browse Source

使用group_concat 必须加group by 否则默认按照 concat字段分组

dev_shibei_match
jianjun 4 years ago
parent
commit
8bd3d07833
  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

@ -226,9 +226,9 @@
art.STATUS_FLAG = 'published'
GROUP BY art.ID
HAVING
HAVING 1 = 1
<if test="tagName != null and tagName != ''">
FIND_IN_SET(#{tagName},tags)
AND FIND_IN_SET(#{tagName},tags)
</if>
<if test="excludeTagName != null and excludeTagName != ''">
AND !FIND_IN_SET(#{excludeTagName},tags)

Loading…
Cancel
Save