This commit is contained in:
wucongxing8150 2025-07-30 18:48:21 +08:00
parent a344ece9fd
commit a16995d845
3 changed files with 18 additions and 3 deletions

View File

@ -370,9 +370,14 @@ public class CaseClinicalArticleController {
}
}
// 获取全部评论数
LambdaQueryWrapper<UserCommentClinicalArticleModel> aQueryWrapper = new LambdaQueryWrapper<>();
aQueryWrapper.eq(UserCommentClinicalArticleModel::getArticleId, request.getArticleId());
Long total = userCommentClinicalArticleDao.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());
resultMap.put("is_author", isAuthor);
return Response.success(resultMap);

View File

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

View File

@ -661,9 +661,14 @@ public class CaseExchangeController {
}
}
// 获取全部评论数
LambdaQueryWrapper<UserCommentExchangeModel> aQueryWrapper = new LambdaQueryWrapper<>();
aQueryWrapper.eq(UserCommentExchangeModel::getExchangeId, request.getExchangeId());
Long total = userCommentExchangeDao.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);
}