mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 04:16:51 +08:00
@我的列表移动端过滤掉案例和笔记
This commit is contained in:
@@ -320,7 +320,7 @@ public class CommentsServiceImpl implements ICommentsService{
|
|||||||
//文章
|
//文章
|
||||||
List<String> articleStrings = new ArrayList<>();
|
List<String> articleStrings = new ArrayList<>();
|
||||||
for (CommentQa c:page.getList()) {
|
for (CommentQa c:page.getList()) {
|
||||||
|
if(c.getRefType()!=3) {
|
||||||
CommentsDto commentsDto = new CommentsDto();
|
CommentsDto commentsDto = new CommentsDto();
|
||||||
commentsDto.setCommentId(c.getId());
|
commentsDto.setCommentId(c.getId());
|
||||||
commentsDto.setObjId(c.getRefId());
|
commentsDto.setObjId(c.getRefId());
|
||||||
@@ -333,13 +333,14 @@ public class CommentsServiceImpl implements ICommentsService{
|
|||||||
commentsDto.setSysCreateTime(c.getSysCreateTime());
|
commentsDto.setSysCreateTime(c.getSysCreateTime());
|
||||||
list.getList().add(commentsDto);
|
list.getList().add(commentsDto);
|
||||||
|
|
||||||
if(c.getRefType()==4){
|
if (c.getRefType() == 4) {
|
||||||
qaStrings.add(c.getRefId());
|
qaStrings.add(c.getRefId());
|
||||||
}
|
}
|
||||||
if(c.getRefType()==2){
|
if (c.getRefType() == 2) {
|
||||||
articleStrings.add(c.getRefId());
|
articleStrings.add(c.getRefId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(qaStrings!=null && !qaStrings.isEmpty()){
|
if(qaStrings!=null && !qaStrings.isEmpty()){
|
||||||
QueryBuilder builder1 = QueryBuilder.from(Question.class);
|
QueryBuilder builder1 = QueryBuilder.from(Question.class);
|
||||||
builder1.addFilter(FieldFilters.in("id",qaStrings));
|
builder1.addFilter(FieldFilters.in("id",qaStrings));
|
||||||
|
|||||||
Reference in New Issue
Block a user