From 6a4db4c97668aff07c5cd64f6768bc0102769e31 Mon Sep 17 00:00:00 2001 From: arybakov Date: Thu, 5 Sep 2024 03:47:27 -0600 Subject: [PATCH] Added debug logging --- .../educ/api/gradstudent/service/GradStudentService.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/GradStudentService.java b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/GradStudentService.java index 33eebc16..c7c15d17 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/GradStudentService.java +++ b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/GradStudentService.java @@ -408,22 +408,15 @@ public List getStudentIDsByStatusCode(List studentIDs, String status public List getStudentIDsBySearchCriteriaOrAll(StudentSearchRequest searchRequest) { ArrayList result = new ArrayList<>(); - boolean paramsNotEmpty = false; if(searchRequest.getStudentIDs() != null && !searchRequest.getStudentIDs().isEmpty()) { - paramsNotEmpty = true; result.addAll(searchRequest.getStudentIDs()); } if(searchRequest.getPens() != null && !searchRequest.getPens().isEmpty()) { - paramsNotEmpty = true; result.addAll(graduationStatusRepository.findStudentIDsByPenIn(searchRequest.getPens())); } if(searchRequest.getSchoolOfRecords() != null && !searchRequest.getSchoolOfRecords().isEmpty()) { - paramsNotEmpty = true; result.addAll(graduationStatusRepository.findBySchoolOfRecordIn(searchRequest.getSchoolOfRecords())); } - if(!paramsNotEmpty) { - result.addAll(graduationStatusRepository.findAllStudentGuids()); - } return result; } }