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
27001ba9
Commit
27001ba9
authored
Oct 12, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
未读消息数量
parent
6abd028a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
core/src/main/java/com/wecloud/im/service/impl/ImInboxServiceImpl.java
+9
-1
No files found.
core/src/main/java/com/wecloud/im/service/impl/ImInboxServiceImpl.java
View file @
27001ba9
...
...
@@ -30,13 +30,18 @@ public class ImInboxServiceImpl extends BaseServiceImpl<ImInboxMapper, ImInbox>
@Autowired
private
ImInboxMapper
imInboxMapper
;
@Autowired
private
ImClientService
imClientService
;
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Boolean
updateImMsgReceived
(
ImMsgReceivedStatusUpdate
imMsgReceivedUpdate
)
{
// 不做接收事件处理
ImClient
curentClient
=
imClientService
.
getCurrentClient
();
// 修改已接收状态
// imInboxMapper.updateImMsgReceivedByIds(curentClient.getId(), imMsgReceivedUpdate.getMsgIds());
// 修改已读状态
imInboxMapper
.
updateImMsgReadByIds
(
curentClient
.
getId
(),
imMsgReceivedUpdate
.
getMsgIds
());
return
true
;
}
...
...
@@ -60,6 +65,9 @@ public class ImInboxServiceImpl extends BaseServiceImpl<ImInboxMapper, ImInbox>
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Boolean
updateImMsgRead
(
MsgReadStatusUpdateParam
msgReadStatusUpdateParam
)
{
// 小虎豆不做单条消息修改已读
ImClient
curentClient
=
imClientService
.
getCurrentClient
();
// 修改已读状态
imInboxMapper
.
updateImMsgReadByIds
(
curentClient
.
getId
(),
msgReadStatusUpdateParam
.
getMsgIds
());
return
true
;
}
...
...
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