Commit 27001ba9 by Future

未读消息数量

parent 6abd028a
......@@ -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;
}
......
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