Skip to content

Commit

Permalink
Testing trimming audit columns.
Browse files Browse the repository at this point in the history
  • Loading branch information
arcshiftsolutions committed Aug 8, 2024
1 parent 4cf39a9 commit 861375c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ private PenReplicationHelper() {

public static PenDemographicsEntity getPenDemogFromStudentUpdate(final StudentUpdate studentUpdate, final PenDemographicsEntity existingPenDemog, final RestUtils restUtils) {
val penDemog = PenDemogStudentMapper.mapper.toPenDemog(studentUpdate);
penDemog.setCreateUser(studentUpdate.getCreateUser().substring(0,15));
penDemog.setUpdateUser(studentUpdate.getUpdateUser().substring(0,15));
penDemog.setUpdateDate(LocalDateTime.now());
penDemog.setStudBirth(StringUtils.replace(penDemog.getStudBirth(), "-", ""));
if (StringUtils.isNotBlank(studentUpdate.getTrueStudentID()) && StringUtils.isBlank(existingPenDemog.getStudentTrueNo())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ private PenDemographicsEntity createOrUpdatePenDemog(final StudentCreateSagaData
penDemographicsEntity.setStudNo(penDemogTxFromDBOptional.get().getPen());
penDemographicsEntity.setCreateDate(LocalDateTime.now());
penDemographicsEntity.setUpdateDate(LocalDateTime.now());
penDemographicsEntity.setCreateUser(studentCreateSagaData.getStudentCreate().getCreateUser().substring(0,15));
penDemographicsEntity.setUpdateUser(studentCreateSagaData.getStudentCreate().getUpdateUser().substring(0,15));
penDemographicsEntity.setStudBirth(StringUtils.replace(penDemographicsEntity.getStudBirth(), "-", ""));
if (studentCreateSagaData.getPenDemogTransaction().getUpdateDemogDate() != null) {
penDemographicsEntity.setUpdateDemogDate(studentCreateSagaData.getPenDemogTransaction().getUpdateDemogDate().toLocalDate());
Expand Down

0 comments on commit 861375c

Please sign in to comment.