@我的列表移动端过滤掉案例和笔记

This commit is contained in:
86182
2022-11-16 14:35:17 +08:00
parent e09d6518a1
commit 12f6dd6bb9

View File

@@ -320,7 +320,7 @@ public class CommentsServiceImpl implements ICommentsService{
//文章
List<String> articleStrings = new ArrayList<>();
for (CommentQa c:page.getList()) {
if(c.getRefType()!=3) {
CommentsDto commentsDto = new CommentsDto();
commentsDto.setCommentId(c.getId());
commentsDto.setObjId(c.getRefId());
@@ -340,6 +340,7 @@ public class CommentsServiceImpl implements ICommentsService{
articleStrings.add(c.getRefId());
}
}
}
if(qaStrings!=null && !qaStrings.isEmpty()){
QueryBuilder builder1 = QueryBuilder.from(Question.class);
builder1.addFilter(FieldFilters.in("id",qaStrings));