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
afec54c8
Commit
afec54c8
authored
Oct 11, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询历史消息添加时间限制
parent
deae5440
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
core/src/main/resources/mapper/ImMessageMapper.xml
+3
-1
docs/db/feature-cluster增量.sql
+3
-1
No files found.
core/src/main/resources/mapper/ImMessageMapper.xml
View file @
afec54c8
...
...
@@ -83,7 +83,9 @@
AND im_message.id
<![CDATA[ < ]]>
#{param.msgIdEnd}
</if>
ORDER BY `im_message`.`create_time` DESC limit 1000
and im_message.create_time > DATE_SUB(CURDATE(), INTERVAL 7 DAY)
ORDER BY `im_message`.`create_time` DESC
</select>
...
...
docs/db/feature-cluster增量.sql
View file @
afec54c8
-- 在f
eature-cluster 2021年12月22日之后,需要执行的的sql增量脚本
-- 在f
eature-cluster 2021年12月22日之后,需要执行的的sql增量脚本
...
...
@@ -208,3 +208,5 @@ ALTER TABLE `im_inbox`
ALTER
TABLE
`im_message`
ADD
INDEX
`idx_sender`
(
`sender`
);
ALTER
TABLE
`im_message`
ADD
INDEX
`idx_create_time`
(
`create_time`
);
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