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
deae5440
Commit
deae5440
authored
Oct 11, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除非必要字段查询
parent
5b8f9d42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
core/src/main/resources/mapper/ImMessageMapper.xml
+7
-7
docs/db/feature-cluster增量.sql
+3
-1
No files found.
core/src/main/resources/mapper/ImMessageMapper.xml
View file @
deae5440
...
...
@@ -65,12 +65,12 @@
im_message.`at`,
im_message.send_status,
im_message.`msg_type` AS 'type',
im_message.fk_conversation_id as conversationId
,
(SELECT COUNT(id) FROM im_inbox WHERE fk_msg_id = msgId AND read_msg_status = 0) AS not_read_count,
(SELECT COUNT(id)
FROM im_inbox
WHERE fk_msg_id = msgId
AND receiver_msg_status = 0) AS not_receiver_count
im_message.fk_conversation_id as conversationId
--
(SELECT COUNT(id) FROM im_inbox WHERE fk_msg_id = msgId AND read_msg_status = 0) AS not_read_count,
--
(SELECT COUNT(id)
--
FROM im_inbox
--
WHERE fk_msg_id = msgId
--
AND receiver_msg_status = 0) AS not_receiver_count
FROM `im_message`
INNER JOIN `im_client` ON `im_client`.id = `im_message`.sender
WHERE fk_conversation_id = #{param.conversationId} and im_message.is_delete = 1 and im_message.withdraw = 0
...
...
@@ -83,7 +83,7 @@
AND im_message.id
<![CDATA[ < ]]>
#{param.msgIdEnd}
</if>
ORDER BY `im_message`.`create_time` DESC
ORDER BY `im_message`.`create_time` DESC
limit 1000
</select>
...
...
docs/db/feature-cluster增量.sql
View file @
deae5440
-- 在f
eature-cluster 2021年12月22日之后,需要执行的的sql增量脚本
-- 在f
eature-cluster 2021年12月22日之后,需要执行的的sql增量脚本
...
...
@@ -206,3 +206,5 @@ ALTER TABLE im_application
ALTER
TABLE
`im_inbox`
ADD
INDEX
`idx_create_time`
(
`create_time`
);
ALTER
TABLE
`im_message`
ADD
INDEX
`idx_sender`
(
`sender`
);
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