|
@@ -96,13 +96,6 @@ public class CourseService {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- public Page<Course> findAll(Course courseCriteria, Long specialtyId, Pageable pageable) {
|
|
|
-
|
|
|
- Specification<Course> specification = getSpecification(courseCriteria, specialtyId);
|
|
|
- Page<Course> examStudents = courseRepo.findAll(specification, pageable);
|
|
|
- return examStudents;
|
|
|
- }
|
|
|
-
|
|
|
private Specification<Course> getSpecification(Course courseCriteria, Long specialtyId) {
|
|
|
Specification<Course> specification = (root, query, cb) -> {
|
|
|
List<Predicate> predicates = new ArrayList<>();
|