Compare commits

...

2 Commits

Author SHA1 Message Date
126b878f3d 666661111 2025-08-28 17:36:00 +08:00
a96ae48920 66666 2025-08-21 09:15:17 +08:00
3 changed files with 15 additions and 3 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);

View File

@ -13,12 +13,12 @@ public abstract class BaseInterceptor implements HandlerInterceptor {
// "POST:/api/public/.*", // POST 请求匹配 /api/public/xx
// "GET:/api/users" , // GET 请求匹配具体路径
"POST:/api/login/wechat/mobile", // 登陆
"GET:/api/index/clinical", // 首页-临床病例库
// "GET:/api/index/clinical", // 首页-临床病例库
"POST:/api/login/mobile", // 登陆
"POST:/api/code/phone", // 获取验证码
"POST:/api/login/hcp", // 登陆-hcp
"POST:/api/app/clinical/video" , // 视频同步
"GET:/api/clinical/stats" // 统计
"POST:/api/app/clinical/video" // 视频同步
// "GET:/api/clinical/stats" // 统计
);
/**