mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-14 21:36:48 +08:00
修复学员端,“文章”列表页,进入文章详情。对文章发表评论后,评论数量没有即时更新;对评论进行回复后,回复的数量没有在评论的数量统计即时更新
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user