|
|
@@ -284,4 +284,14 @@ public class ExamServiceImpl implements ExamService {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<ExamInfoVO> getRecommendExam() {
|
|
|
+ List<Exam> examList = examDao.findByIsHidden(0);
|
|
|
+ if(examList.size() > 8) {
|
|
|
+ return examList.stream().map(ExamConvertor::convertToExamInfoVO).collect(Collectors.toList()).subList(0, 8);
|
|
|
+ } else {
|
|
|
+ return examList.stream().map(ExamConvertor::convertToExamInfoVO).collect(Collectors.toList());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|