Ver Fonte

已收藏

jinxia.mo há 1 mês atrás
pai
commit
638673b472

+ 2 - 2
ie-system/src/main/java/com/ruoyi/learn/service/impl/LearnQuestionsServiceImpl.java

@@ -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);
             });
         }
     }