更新
This commit is contained in:
parent
98921c4650
commit
965dfb6d97
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
@ -27,7 +27,7 @@ public interface CommentDao {
|
||||
|
||||
List<Comment> selectAllComment();
|
||||
|
||||
List<Comment> selectByAllReply(int id);
|
||||
List<Comment> selectByAllReply();
|
||||
|
||||
|
||||
List<CommentNode> queryFirstCommentList (Integer UrlId);
|
||||
|
@ -21,7 +21,7 @@ public interface CommentService {
|
||||
// 显示评论
|
||||
String View_comment();
|
||||
// 显示回复
|
||||
String View_Reply(int id);
|
||||
String View_Reply();
|
||||
|
||||
List<CommentNode> queryCommentByUrlId (Integer UrlId );
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -200,7 +200,6 @@
|
||||
select
|
||||
*
|
||||
from ln_comment
|
||||
where root_comment_id = #{rootCommentId,jdbcType=INTEGER} and comment_status = 0
|
||||
</select>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user