This commit is contained in:
wucongxing8150 2025-08-21 09:15:17 +08:00
parent 523299f91a
commit a96ae48920
2 changed files with 12 additions and 0 deletions

View File

@ -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));

View File

@ -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);