Skip to content

Commit

Permalink
Fix username for student history
Browse files Browse the repository at this point in the history
  • Loading branch information
arybakov-cgi committed Aug 19, 2024
1 parent df9d0f0 commit 6b79c6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ public GraduationStudentRecord saveStudentRecordDistributionRun(UUID studentID,
Optional<GraduationStudentRecordEntity> gradStatusOptional = graduationStatusRepository.findById(studentID);
if (gradStatusOptional.isPresent()) {
GraduationStudentRecordEntity gradEntity = gradStatusOptional.get();
gradEntity.setUpdateUser(username);
gradEntity.setUpdateUser(StringUtils.isNotBlank(username) && !StringUtils.equalsIgnoreCase(username, "null") ? username : null);
gradEntity.setUpdateDate(LocalDateTime.now());
gradEntity.setBatchId(batchId);
gradEntity = graduationStatusRepository.saveAndFlush(gradEntity);
Expand Down

0 comments on commit 6b79c6e

Please sign in to comment.