提交 dc416f00 作者: 张小凤

GambitServiceImpl(update)

上级 10ca3bb1
......@@ -159,6 +159,7 @@ public class GambitServiceImpl implements GambitService {
}
}else{
ForumAttentionDO forumAttentionDO = gambitDao.selectAttentionMessage(userAccountId, attentionUserAccountId);
ForumAttentionDO forumAttentionDOs = gambitDao.selectAttentionM(userAccountId,attentionUserAccountId);
if (forumAttentionDO!=null){
if (forumAttentionDO.getMutualAttention().equals(false)){
gambitDao.removeAttention(userAccountId,attentionUserAccountId);
......@@ -170,6 +171,17 @@ public class GambitServiceImpl implements GambitService {
gambitDao.forumCountAttentionNO(attentionUserAccountId);
}
}
if (forumAttentionDOs!=null){
if (forumAttentionDOs.getMutualAttention().equals(false)){
gambitDao.removeAttention(userAccountId,attentionUserAccountId);
gambitDao.forumCountFansNO(userAccountId);
gambitDao.forumCountAttentionNO(attentionUserAccountId);
}else{
gambitDao.updateAttentionExchange(attentionUserAccountId,userAccountId);
gambitDao.forumCountFansNO(userAccountId);
gambitDao.forumCountAttentionNO(attentionUserAccountId);
}
}
}
return ResultBody.success();
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论