提交 5e49d7d4 作者: 张小凤

GambitServiceImpl(update)

上级 de7325bd
...@@ -334,6 +334,11 @@ public class GambitServiceImpl implements GambitService { ...@@ -334,6 +334,11 @@ public class GambitServiceImpl implements GambitService {
Integer userAccountId = myAttentionDO.getUserAccountId(); Integer userAccountId = myAttentionDO.getUserAccountId();
UserAccountVO info = info(userAccountId); UserAccountVO info = info(userAccountId);
myAttentionDO.setUserAccountVO(info); myAttentionDO.setUserAccountVO(info);
int i = gambitDao.selectCountAttentions(userId, myAttentionDO.getUserAccountId());
if (i!=0){
ForumCountDO countDO = myAttentionDO.getCountDO();
countDO.setStatus(true);
}
} }
return PageResult.buildPage(pageNo, userTopicDynamicsQO.getPageSize(),count,myAttentionDOS); return PageResult.buildPage(pageNo, userTopicDynamicsQO.getPageSize(),count,myAttentionDOS);
} }
...@@ -393,6 +398,13 @@ public class GambitServiceImpl implements GambitService { ...@@ -393,6 +398,13 @@ public class GambitServiceImpl implements GambitService {
Integer userAccountId = myAttentionDO.getUserAccountId(); Integer userAccountId = myAttentionDO.getUserAccountId();
UserAccountVO info = info(userAccountId); UserAccountVO info = info(userAccountId);
myAttentionDO.setUserAccountVO(info); myAttentionDO.setUserAccountVO(info);
int i = gambitDao.selectCountAttentions(userId, myAttentionDO.getUserAccountId());
if(i!=0){
ForumCountDO countDO = myAttentionDO.getCountDO();
countDO.setStatus(true);
}
} }
return PageResult.buildPage(pageNo, userTopicDynamicsQO.getPageSize(),count,myFansDOS); return PageResult.buildPage(pageNo, userTopicDynamicsQO.getPageSize(),count,myFansDOS);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论