Skip to content

Commit

Permalink
GRAD2-2758
Browse files Browse the repository at this point in the history
YE Distribution Run to Revert the bundling back to SCHOOL OF RECORD
  • Loading branch information
arybakov-cgi committed Jun 11, 2024
1 parent 0565538 commit 4b6e815
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ public StudentCredentialDistribution process(StudentCredentialDistribution item)
LOGGER.info("Processing partitionData = {}", item.getCredentialTypeCode());
summaryDTO.setBatchId(batchId);
boolean useSchoolAtGrad = false;
// Revert code back to school of record GRAD2-2758
//--> Revert code back to school of record GRAD2-2758
/**
String credentialType = summaryDTO.getCredentialType();
if (StringUtils.equalsAnyIgnoreCase(credentialType, "OC", "RC")) {
useSchoolAtGrad = true;
} **/
//<--
return restUtils.processDistribution(item, summaryDTO, useSchoolAtGrad);

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ private StudentCredentialDistribution populateStudentCredentialDistribution(Repo
}
dist.setStudentID(data.getGraduationStudentRecordId());
dist.setPaperType(paperType);
dist.setSchoolOfRecord(StringUtils.isBlank(data.getMincodeAtGrad()) ? data.getMincode() : data.getMincodeAtGrad());
//--> Revert code back to school of record GRAD2-2758
/** dist.setSchoolOfRecord(StringUtils.isBlank(data.getMincodeAtGrad()) ? data.getMincode() : data.getMincodeAtGrad()); **/
dist.setSchoolOfRecord(data.getMincode());
//<--
dist.setSchoolAtGrad(data.getMincodeAtGrad());
dist.setSchoolOfRecordOrigin(data.getMincode());
dist.setDocumentStatusCode("COMPL");
Expand Down

0 comments on commit 4b6e815

Please sign in to comment.