diff --git a/servers/boe-server-all/src/main/java/com/xboe/module/interaction/service/impl/CommentsServiceImpl.java b/servers/boe-server-all/src/main/java/com/xboe/module/interaction/service/impl/CommentsServiceImpl.java index 381e94b2..6d185658 100644 --- a/servers/boe-server-all/src/main/java/com/xboe/module/interaction/service/impl/CommentsServiceImpl.java +++ b/servers/boe-server-all/src/main/java/com/xboe/module/interaction/service/impl/CommentsServiceImpl.java @@ -320,24 +320,25 @@ public class CommentsServiceImpl implements ICommentsService{ //文章 List articleStrings = new ArrayList<>(); for (CommentQa c:page.getList()) { + if(c.getRefType()!=3) { + CommentsDto commentsDto = new CommentsDto(); + commentsDto.setCommentId(c.getId()); + commentsDto.setObjId(c.getRefId()); + commentsDto.setObjType(c.getRefType()); + commentsDto.setToAid(c.getToAid()); + commentsDto.setToAname(c.getToName()); + commentsDto.setContent(c.getContent()); + commentsDto.setSysCreateAid(c.getSysCreateAid()); + commentsDto.setSysCreateBy(c.getSysCreateBy()); + commentsDto.setSysCreateTime(c.getSysCreateTime()); + list.getList().add(commentsDto); - CommentsDto commentsDto = new CommentsDto(); - commentsDto.setCommentId(c.getId()); - commentsDto.setObjId(c.getRefId()); - commentsDto.setObjType(c.getRefType()); - commentsDto.setToAid(c.getToAid()); - commentsDto.setToAname(c.getToName()); - commentsDto.setContent(c.getContent()); - commentsDto.setSysCreateAid(c.getSysCreateAid()); - commentsDto.setSysCreateBy(c.getSysCreateBy()); - commentsDto.setSysCreateTime(c.getSysCreateTime()); - list.getList().add(commentsDto); - - if(c.getRefType()==4){ - qaStrings.add(c.getRefId()); - } - if(c.getRefType()==2){ - articleStrings.add(c.getRefId()); + if (c.getRefType() == 4) { + qaStrings.add(c.getRefId()); + } + if (c.getRefType() == 2) { + articleStrings.add(c.getRefId()); + } } } if(qaStrings!=null && !qaStrings.isEmpty()){