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