Skip to content

Commit

Permalink
Added debug logging (#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
arybakov-cgi authored Sep 5, 2024
1 parent 7aa0336 commit 61690d7
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,22 +408,15 @@ public List<UUID> getStudentIDsByStatusCode(List<UUID> studentIDs, String status

public List<UUID> getStudentIDsBySearchCriteriaOrAll(StudentSearchRequest searchRequest) {
ArrayList<UUID> 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;
}
}

0 comments on commit 61690d7

Please sign in to comment.