|
@ -224,9 +224,8 @@ |
|
|
art.DEL_FLAG = '0' |
|
|
art.DEL_FLAG = '0' |
|
|
AND |
|
|
AND |
|
|
art.STATUS_FLAG = 'published' |
|
|
art.STATUS_FLAG = 'published' |
|
|
<if test="(tagName != null and tagName != '') or (excludeTagName != null and excludeTagName != '')"> |
|
|
|
|
|
GROUP BY art.ID |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GROUP BY art.ID |
|
|
HAVING |
|
|
HAVING |
|
|
<if test="tagName != null and tagName != ''"> |
|
|
<if test="tagName != null and tagName != ''"> |
|
|
FIND_IN_SET(#{tagName},tags) |
|
|
FIND_IN_SET(#{tagName},tags) |
|
@ -234,7 +233,6 @@ |
|
|
<if test="excludeTagName != null and excludeTagName != ''"> |
|
|
<if test="excludeTagName != null and excludeTagName != ''"> |
|
|
AND !FIND_IN_SET(#{excludeTagName},tags) |
|
|
AND !FIND_IN_SET(#{excludeTagName},tags) |
|
|
</if> |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
ORDER BY art.PUBLISH_DATE DESC , art.CREATED_TIME DESC |
|
|
ORDER BY art.PUBLISH_DATE DESC , art.CREATED_TIME DESC |
|
|
LIMIT #{num} |
|
|
LIMIT #{num} |
|
|
</select> |
|
|
</select> |
|
|