Commit 0d6e0272 authored by shiyu's avatar shiyu

新增互关关系判断

parent aec149c6
......@@ -157,6 +157,8 @@ public class MessageServiceImpl implements MessageService {
if (followerIdList.contains(messageContentMap.get(m.getMessageId()).getSenderId())) {
contentMap.put("relation", "互相关注");
contentMap.put("isFollowed", true);
int id = followFansRecordList.stream().filter(f->f.getFollowerId().longValue() == messageContentMap.get(m.getMessageId()).getSenderId()).map(FollowFansRecord::getId).findFirst().get();
contentMap.put("id", id);
} else {
contentMap.put("relation", "回关");
contentMap.put("isFollowed", false);
......
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