Compare commits
2 Commits
523299f91a
...
126b878f3d
| Author | SHA1 | Date | |
|---|---|---|---|
| 126b878f3d | |||
| 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);
|
||||
|
||||
@ -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" // 统计
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user