Commit 8e4190cc by 段启岩

话题锁定

parent 7f081ded
...@@ -151,6 +151,7 @@ public class PostServiceImpl extends ServiceImpl<PostMapper, Post> implements IP ...@@ -151,6 +151,7 @@ public class PostServiceImpl extends ServiceImpl<PostMapper, Post> implements IP
updateById(post); updateById(post);
} }
if (!CollectionUtils.isEmpty(unLockedTopicNames)) {
List<String> topicIds = topics.stream().map(Topic::getTopicId).collect(Collectors.toList()); List<String> topicIds = topics.stream().map(Topic::getTopicId).collect(Collectors.toList());
// 关联话题和动态 // 关联话题和动态
...@@ -171,6 +172,8 @@ public class PostServiceImpl extends ServiceImpl<PostMapper, Post> implements IP ...@@ -171,6 +172,8 @@ public class PostServiceImpl extends ServiceImpl<PostMapper, Post> implements IP
} }
}
//发送消息到消息队列 //发送消息到消息队列
messageQueueService.sendDataItemChangeMessage(DataItemChangeMessage.addMessage(DataItemType.POST, post.getPostId())); messageQueueService.sendDataItemChangeMessage(DataItemChangeMessage.addMessage(DataItemType.POST, post.getPostId()));
......
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