This commit is contained in:
sjm 2023-12-29 00:31:25 +08:00
parent 98921c4650
commit 965dfb6d97
5 changed files with 6 additions and 7 deletions

View File

@ -45,8 +45,8 @@ public class CommentController {
// 显示回复
@RequestMapping(method = RequestMethod.GET, value = "/comment/view_reply")
public String View_reply(int id){
return commentService.View_Reply(id);
public String View_reply(){
return commentService.View_Reply();
}

View File

@ -27,7 +27,7 @@ public interface CommentDao {
List<Comment> selectAllComment();
List<Comment> selectByAllReply(int id);
List<Comment> selectByAllReply();
List<CommentNode> queryFirstCommentList (Integer UrlId);

View File

@ -21,7 +21,7 @@ public interface CommentService {
// 显示评论
String View_comment();
// 显示回复
String View_Reply(int id);
String View_Reply();
List<CommentNode> queryCommentByUrlId (Integer UrlId );

View File

@ -85,8 +85,8 @@ public class CommentServiceImpl implements CommentService {
}
// 显示回复
public String View_Reply(int id){
List<Comment> list = commentDao.selectByAllReply(id);
public String View_Reply(){
List<Comment> list = commentDao.selectByAllReply();
return JSON.toJSONString(list);
}

View File

@ -200,7 +200,6 @@
select
*
from ln_comment
where root_comment_id = #{rootCommentId,jdbcType=INTEGER} and comment_status = 0
</select>