This commit is contained in:
2025-07-30 18:48:21 +08:00
parent a344ece9fd
commit a16995d845
3 changed files with 18 additions and 3 deletions
@@ -360,9 +360,14 @@ public class CaseClinicalVideoController {
}
}
// 获取全部评论数
LambdaQueryWrapper<UserCommentClinicalVideoModel> aQueryWrapper = new LambdaQueryWrapper<>();
aQueryWrapper.eq(UserCommentClinicalVideoModel::getVideoId, request.getVideoId());
Long total = userCommentClinicalVideoDao.selectCount(aQueryWrapper);
resultMap.put("page", resultPage.getCurrent());
resultMap.put("pageSize", resultPage.getSize());
resultMap.put("total", resultPage.getTotal());
resultMap.put("total", total);
resultMap.put("data", resultPage.getRecords());
return Response.success(resultMap);
}