Commit 6abd028a by Future

未读消息数量

parent b35bf315
......@@ -45,7 +45,7 @@
SELECT GROUP_CONCAT(im_client.client_id)
FROM im_conversation_members AS im_conversation_members
INNER JOIN im_client AS im_client ON im_client.id = im_conversation_members.fk_client_id
WHERE im_conversation_members.fk_conversation_id = imConversation.id and imConversation.chat_type=1
WHERE im_conversation_members.fk_conversation_id = imConversation.id and imConversation.chat_type in (1,5,6)
) AS members
FROM im_conversation_members AS imConversationMembers
INNER JOIN im_conversation AS imConversation
......
......@@ -51,6 +51,7 @@
FROM im_inbox
WHERE receiver = #{fkClientId}
AND receiver_msg_status = 0
GROUP BY fk_conversation_id
</select>
<select id="countBeAt" resultType="com.wecloud.im.vo.ConversationCountVo">
......@@ -62,6 +63,7 @@
FIND_IN_SET( #{clientId}, im_message.`at` ) > 0
OR FIND_IN_SET( '-1', im_message.`at` ) > 0
)
GROUP BY im_inbox.fk_conversation_id
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment