|
|
@@ -115,9 +115,9 @@ public class LearnQuestionsServiceImpl implements ILearnQuestionsService
|
|
|
map.put("userId", userId);
|
|
|
map.put("ids", ids);
|
|
|
List<LearnQuestions> collectInfos = learnQuestionsMapper.selectCollectInfo(map);
|
|
|
- Set<Long> collected = collectInfos.stream().map(LearnQuestions::getId).collect(Collectors.toSet());
|
|
|
+// Set<Long> collected = collectInfos.stream().map(LearnQuestions::getId).collect(Collectors.toSet());
|
|
|
questions.forEach(e -> {
|
|
|
- e.setCollect(collected.contains(e.getId()));
|
|
|
+ e.setCollect(true);
|
|
|
});
|
|
|
}
|
|
|
}
|