66666
This commit is contained in:
parent
523299f91a
commit
a96ae48920
@ -56,7 +56,15 @@ public class StatsCaseClinicalController extends BaseController {
|
||||
}
|
||||
|
||||
Long articleReadNum = caseClinicalArticleDao.getTotalReadNum();
|
||||
if (articleReadNum == null){
|
||||
articleReadNum = 0L;
|
||||
}
|
||||
|
||||
Long videoReadNum = caseClinicalVideoDao.getTotalReadNum();
|
||||
if (videoReadNum == null){
|
||||
videoReadNum = 0L;
|
||||
}
|
||||
|
||||
g.setArticleReadNum(Math.toIntExact(articleReadNum));
|
||||
g.setVideoReadNum(Math.toIntExact(videoReadNum));
|
||||
|
||||
|
||||
@ -53,6 +53,10 @@ public class StatsCaseExchangeController extends BaseController {
|
||||
}
|
||||
|
||||
Long totalCommentNum = caseExchangeDao.getTotalCommentNum();
|
||||
if (totalCommentNum == null){
|
||||
totalCommentNum = 0L;
|
||||
}
|
||||
|
||||
g.setExchangeCommentNum(Math.toIntExact(totalCommentNum));
|
||||
|
||||
return Response.success(g);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user