You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
List<XxlMqMessage> list = xxlMqMessageDao.pullNewMessage(XxlMqMessageStatus.NEW.name(), topic, group, consumerRank, consumerTotal, pagesize);
对应sql
SELECT <include refid="Base_Column_List" />
FROM xxl_mq_message AS t
WHERE t.topic = #{topic}
AND t.group = #{group}
AND t.status = #{newStatus}
AND t.effectTime <![CDATA[ < ]]> NOW()
<if test="consumerTotal > 1">
AND (
(
t.shardingId <![CDATA[ = ]]> 0
AND
MOD(t.id, #{consumerTotal}) = #{consumerRank}
)
OR
(
t.shardingId <![CDATA[ > ]]> 0
AND
MOD(t.shardingId, #{consumerTotal}) = #{consumerRank}
)
)
</if>
ORDER BY t.id ASC
LIMIT #{pagesize}
The text was updated successfully, but these errors were encountered:
对应sql
The text was updated successfully, but these errors were encountered: