|
@@ -327,8 +327,13 @@ public class CommunityCommentController extends BaseController {
|
|
if (Objects.isNull(articleId)) {
|
|
if (Objects.isNull(articleId)) {
|
|
return AjaxResult.error("参数异常!");
|
|
return AjaxResult.error("参数异常!");
|
|
}
|
|
}
|
|
- List<CommunityArticleComment> communityArticleComments = communityArticleCommentMapper.queryComment(articleId, comment);
|
|
|
|
-
|
|
|
|
|
|
+ List<CommunityArticleComment> communityArticleComments = null;
|
|
|
|
+ try {
|
|
|
|
+ communityArticleComments = communityArticleCommentMapper.queryComment(articleId, comment);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ System.out.println(e.getMessage());
|
|
|
|
+ throw new ProjectException();
|
|
|
|
+ }
|
|
return AjaxResult.success(communityArticleComments);
|
|
return AjaxResult.success(communityArticleComments);
|
|
}
|
|
}
|
|
|
|
|