修复学员端,“文章”列表页,进入文章详情。对文章发表评论后,评论数量没有即时更新;对评论进行回复后,回复的数量没有在评论的数量统计即时更新

This commit is contained in:
王卓煜
2025-07-04 13:31:28 +08:00
parent 171ddfb89c
commit 2a1c04ccb5

View File

@@ -75,6 +75,7 @@ public class CommentsServiceImpl implements ICommentsService{
c.setPraises(0); c.setPraises(0);
c.setFavorites(0); c.setFavorites(0);
dao.save(c); dao.save(c);
callback.increase(BoedxResourceType.toEnum(c.getObjType()),c.getObjId(), BoedxHitsField.Comments);
if(c.getParentRead()!=null && c.getParentRead()) { if(c.getParentRead()!=null && c.getParentRead()) {
dao.updateMultiFieldById(c.getParentId(), dao.updateMultiFieldById(c.getParentId(),
UpdateBuilder.create("replys","replys+1",FieldUpdateType.EXPRESSION), UpdateBuilder.create("replys","replys+1",FieldUpdateType.EXPRESSION),