Skip to content

Commit

Permalink
GRAD2-2934: task is completed.
Browse files Browse the repository at this point in the history
GRAD2-2934: task is completed.
  • Loading branch information
infstar committed Sep 23, 2024
1 parent 42592d4 commit 0c51c7e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
@Service
public class DataConversionService {

public static final String NULL_VALUE = "NULL"; // NULL String => Nullify (set to NULL)
private static final String CREATE_USER = "createUser";
private static final String CREATE_DATE = "createDate";
public static final String DEFAULT_CREATED_BY = "DATA_CONV";
Expand Down Expand Up @@ -296,7 +297,7 @@ private void handleStudentAchievements(String currentProgram, String newProgram,
}

private void resetAdultStartDate(String currentProgram, String newProgram, GraduationStudentRecordEntity targetObject) {
// Only when 1950 adult program is channged to another, reset adultStartDate to null
// Only when 1950 adult program is changed to another, reset adultStartDate to null
if (!StringUtils.equalsIgnoreCase(currentProgram, newProgram) && "1950".equalsIgnoreCase(currentProgram)) {
targetObject.setAdultStartDate(null);
}
Expand Down Expand Up @@ -350,7 +351,8 @@ private void populate(OngoingUpdateFieldDTO field, GraduationStudentRecordEntity
private String getStringValue(Object value) {
if (value == null)
return null;
return (String) value;
String str = (String) value;
return NULL_VALUE.equalsIgnoreCase(str)? null : str;
}

private StudentOptionalProgramEntity handleExistingOptionalProgram(StudentOptionalProgramRequestDTO studentOptionalProgramReq, StudentOptionalProgramEntity gradEntity) {
Expand Down

0 comments on commit 0c51c7e

Please sign in to comment.