Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
6abd028a
Commit
6abd028a
authored
Oct 12, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
未读消息数量
parent
b35bf315
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
core/src/main/resources/mapper/ImConversationMapper.xml
+1
-1
core/src/main/resources/mapper/ImInboxMapper.xml
+2
-0
No files found.
core/src/main/resources/mapper/ImConversationMapper.xml
View file @
6abd028a
...
...
@@ -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
...
...
core/src/main/resources/mapper/ImInboxMapper.xml
View file @
6abd028a
...
...
@@ -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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment