fix: delete comment

main
wangqing 9 months ago
parent 271fe44881
commit f16f912c63

@ -153,7 +153,7 @@ public class CommentService {
cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_COMMENT_PAGE_HOT+"_"+comment.getRootJournalId());
cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_COMMENT_PAGE_NEW+"_"+comment.getRootJournalId());
}
comment.setContent("原评论已删除");
// comment.setContent("原评论已删除");
// 同步publicationLike和CommentHis
// 同步更新publicationLike中的评论信息
@ -177,8 +177,8 @@ public class CommentService {
Update update3 = new Update();
update3.set("commentContent","原评论已删除");
mongoTemplate.updateMulti(query3,update3,CommentHis.class);
// commentDao.deleteById(id);
commentDao.save(comment);
commentDao.deleteById(id);
// commentDao.save(comment);
}
public Page<Comment> findByParentId(String parentId, int page, int size) {

Loading…
Cancel
Save