Commit 427a25a5 authored by 刘基明's avatar 刘基明

同步评论转发,评论点赞消息通知

parent 0936157e
...@@ -100,6 +100,12 @@ public class NotificationManager { ...@@ -100,6 +100,12 @@ public class NotificationManager {
CommentEntity commentEntity = commentService.queryByCommentId(themeNotifyQo.getFormerThemeId()); CommentEntity commentEntity = commentService.queryByCommentId(themeNotifyQo.getFormerThemeId());
themeNotifyQo.setFormerThemeId(commentEntity.getThemeId()); themeNotifyQo.setFormerThemeId(commentEntity.getThemeId());
} }
if (NotificationTypeEnum.COMMENT_LIKE.getCode().equals(themeNotifyQo.getMessageType())){
// 评论点赞类型将commentId替换为themeId
CommentEntity commentEntity = commentService.queryByCommentId(themeNotifyQo.getFormerThemeId());
themeNotifyQo.setFormerThemeId(commentEntity.getThemeId());
// todo 评论原贴
}
ThemeEntity former = themeService.queryByThemeId(themeNotifyQo.getFormerThemeId()); ThemeEntity former = themeService.queryByThemeId(themeNotifyQo.getFormerThemeId());
if (former != null) { if (former != null) {
......
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