|
|
@ -1417,10 +1417,12 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit |
|
|
|
List<String> pidList = Arrays.stream(pids.split(":")).collect(Collectors.toList()); |
|
|
|
pidList.add(gridId); |
|
|
|
List<SubjectListResultDTO> result = baseDao.subjectList(pidList); |
|
|
|
if (!CollectionUtils.isEmpty(result)){ |
|
|
|
return result; |
|
|
|
if (CollectionUtils.isEmpty(result)){ |
|
|
|
return new ArrayList<>(); |
|
|
|
} |
|
|
|
return new ArrayList<>(); |
|
|
|
List<String> tags = result.stream().map(SubjectListResultDTO::getTagId).distinct().collect(Collectors.toList()); |
|
|
|
result = result.stream().filter(item -> !tags.contains(item.getTagId())).collect(Collectors.toList()); |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|