提交 3b66b1c2 作者: 张小凤

GambitService(update)

上级 bfa17d87
...@@ -420,6 +420,19 @@ public class GambitServiceImpl implements GambitService { ...@@ -420,6 +420,19 @@ public class GambitServiceImpl implements GambitService {
ForumCountDO countDO = myAttentionDO.getCountDO(); ForumCountDO countDO = myAttentionDO.getCountDO();
countDO.setStatusList(true); countDO.setStatusList(true);
} }
List<ForumAttentionDO> forumAttentionDOS = gambitDao.selectAttentionCount(userTopicDynamicsQO.getUserAccountId(), userTopicDynamicsQO.getUserId());
List<ForumAttentionDO> collect1 = forumAttentionDOS.stream().filter(m -> m.getMutualAttention().equals(true)).collect(Collectors.toList());
List<ForumAttentionDO> collect2 = collect1.stream().filter(s -> s.getUserAccountId().equals(userTopicDynamicsQO.getUserId()) ||
s.getAttentionUserAccountId().equals(userTopicDynamicsQO.getUserId()) ).collect(Collectors.toList());
for (ForumAttentionDO forumAttentionDO : collect2) {
if (myAttentionDO.getUserAccountId().equals(forumAttentionDO.getUserAccountId())||
myAttentionDO.getAttentionUserAccountId().equals(forumAttentionDO.getAttentionUserAccountId())){
ForumCountDO countDO = myAttentionDO.getCountDO();
countDO.setStatusList(true);
}
}
} }
return PageResult.buildPage(pageNo, userTopicDynamicsQO.getPageSize(),count,myFansDOS); return PageResult.buildPage(pageNo, userTopicDynamicsQO.getPageSize(),count,myFansDOS);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论