From 61690d74d8ecbdb222db5952b7c1c70b528b5ef2 Mon Sep 17 00:00:00 2001 From: Alexander Rybakov <83988488+arybakov-cgi@users.noreply.github.com> Date: Thu, 5 Sep 2024 09:39:55 -0600 Subject: [PATCH] Added debug logging (#680) --- .../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; } }