提交 9bfc431a authored 作者: yangzhenguang's avatar yangzhenguang

--no commit message

上级 bbc02ab1
...@@ -260,13 +260,13 @@ public class FgTalkServiceImpl extends BaseServiceImpl<Talk, Integer> implements ...@@ -260,13 +260,13 @@ public class FgTalkServiceImpl extends BaseServiceImpl<Talk, Integer> implements
int replyReplayNum = 0; int replyReplayNum = 0;
int talkPublishNum = 0; int talkPublishNum = 0;
if (talkStatistic != null){ if (talkStatistic != null){
talkPraiseNum = talkStatistic.getPraiseNum(); talkPraiseNum = talkStatistic.getPraiseNum() == null ? 0 : talkStatistic.getPraiseNum();
talkReplyNum = talkStatistic.getReplyNum(); talkReplyNum = talkStatistic.getReplyNum() == null ? 0 : talkStatistic.getReplyNum();
talkPublishNum = talkStatistic.getPublishNum(); talkPublishNum = talkStatistic.getPublishNum() == null ? 0 : talkStatistic.getPublishNum();
} }
if (replyStatistic != null){ if (replyStatistic != null){
replyPraiseNum = replyStatistic.getPraiseNum(); replyPraiseNum = replyStatistic.getPraiseNum() == null ? 0 : replyStatistic.getPraiseNum();
replyReplayNum = replyStatistic.getReplyNum(); replyReplayNum = replyStatistic.getReplyNum() == null ? 0 : replyStatistic.getReplyNum();
} }
statisticVO.setPraiseNum(talkPraiseNum statisticVO.setPraiseNum(talkPraiseNum
+ replyPraiseNum); + replyPraiseNum);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论