Commit dfa3d640 authored by 刘基明's avatar 刘基明

关注列表

parent 656e98ec
...@@ -132,6 +132,7 @@ public class ThemeManager { ...@@ -132,6 +132,7 @@ public class ThemeManager {
} }
themeEntities = themeService.queryByThemeIds(new ArrayList<>(replyThemeIds)); themeEntities = themeService.queryByThemeIds(new ArrayList<>(replyThemeIds));
List<ThemeQo> themeQos = convertEntityToQo(themeEntities, userId); List<ThemeQo> themeQos = convertEntityToQo(themeEntities, userId);
//组装附件
productService.getAttachDetailByBatch(themeQos); productService.getAttachDetailByBatch(themeQos);
//主题列表 //主题列表
Map<String, ThemeQo> themeMap = themeQos.stream() Map<String, ThemeQo> themeMap = themeQos.stream()
......
...@@ -375,8 +375,8 @@ public class ProductService { ...@@ -375,8 +375,8 @@ public class ProductService {
themeQo.setTopicTitle(topicMap.get(themeQo.getTopicId())); themeQo.setTopicTitle(topicMap.get(themeQo.getTopicId()));
} }
if (!StringUtils.isEmpty(themeQo.getAuthorId()) && userMap.containsKey(themeQo.getAuthorId())) { if (!StringUtils.isEmpty(themeQo.getAuthorId()) && userMap.containsKey(themeQo.getAuthorId())) {
themeQo.setNickName(userMap.get(themeQo.getAuthorId()).getUiNickname()); themeQo.setNickName(userMap.get(themeQo.getAuthorId()).getUiUsernameMp());
themeQo.setUserImg(userMap.get(themeQo.getAuthorId()).getUiHeadimg()); themeQo.setUserImg(userMap.get(themeQo.getAuthorId()).getUiHeadimgMp());
} }
if (themeQo.getContent() == null) { if (themeQo.getContent() == null) {
continue; continue;
......
...@@ -180,8 +180,8 @@ public class ConvertUtil { ...@@ -180,8 +180,8 @@ public class ConvertUtil {
return null; return null;
} }
return FollowQo.builder().userId(entity.getId()) return FollowQo.builder().userId(entity.getId())
.nickName(entity.getUiNickname()) .nickName(entity.getUiUsernameMp())
.headImg(entity.getUiHeadimg()) .headImg(entity.getUiHeadimgMp())
.introduction(entity.getUiIntroduction()) .introduction(entity.getUiIntroduction())
.build(); .build();
} }
......
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