Commit 1c79fa63 authored by 刘基明's avatar 刘基明

我的评论修复

parent c95a12cc
...@@ -460,8 +460,7 @@ public class ThemeManager { ...@@ -460,8 +460,7 @@ public class ThemeManager {
.type(RelTypeEnum.TEXT.type) .type(RelTypeEnum.TEXT.type)
.value(commentEntity.getContent()) .value(commentEntity.getContent())
.build(); .build();
//原主题包装到FormerThemeQo中
ThemeQo themeQo = themeMap.get(themeId);
ThemeQo commentThemeQo = ThemeQo.builder() ThemeQo commentThemeQo = ThemeQo.builder()
.authorId(userInfo.getUserId()) .authorId(userInfo.getUserId())
...@@ -477,10 +476,12 @@ public class ThemeManager { ...@@ -477,10 +476,12 @@ public class ThemeManager {
.themeType(ThemeTypeEnum.RES_COMMENT.getCode()) .themeType(ThemeTypeEnum.RES_COMMENT.getCode())
.follow(followRelService.checkFollow(userId,userId)) .follow(followRelService.checkFollow(userId,userId))
.build(); .build();
//如果原文未被删除,组装数据到formerTheme中
//原主题包装到formerThemeQo中
ThemeQo themeQo = themeMap.get(themeId);
if (themeQo!=null){ if (themeQo!=null){
FormerThemeQo f = ConvertUtil.themeQo2FormerThemeQo(themeQo); FormerThemeQo f = ConvertUtil.themeQo2FormerThemeQo(themeQo);
themeQo.setFormerTheme(f); commentThemeQo.setFormerTheme(f);
} }
commentThemeList.add(commentThemeQo); commentThemeList.add(commentThemeQo);
} }
......
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