|
|
@@ -203,6 +203,7 @@ public class CourseServiceImpl implements CourseService {
|
|
|
public List<CourseVO> findStudentCourses(Long studentId) {
|
|
|
List<CourseSelection> courseSelections = courseSelectionRepository.findCourseSelectionsByUserId(studentId);
|
|
|
return courseSelections.stream()
|
|
|
+ .filter(CourseSelection::getState)
|
|
|
.map(courseSelection -> this.findCourseById(courseSelection.getCourseId()))
|
|
|
.filter(course -> !course.getState().equals(ObjectState.DELETED))
|
|
|
.collect(Collectors.toList());
|