Skip to content

Commit

Permalink
GRAD2-2761: districtId is newly added into School Clob.
Browse files Browse the repository at this point in the history
GRAD2-2761: districtId is newly added into School Clob.
  • Loading branch information
infstar committed Dec 24, 2024
1 parent 0c5e2ec commit 8458633
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class School implements Comparable<School> {
private String minCode;
private String schoolId;
private String schoolName;
private String districtId;
private String districtName;
private String transcriptEligibility;
private String certificateEligibility;
Expand Down Expand Up @@ -69,8 +70,8 @@ public int hashCode() {

@Override
public String toString() {
return "School [minCode=" + minCode + ", schoolId=" + schoolId + ", schoolCategoryCode=" + schoolCategoryCode + ", schoolCategoryLegacyCode=" + schoolCategoryLegacyCode
+ ", schoolName=" + schoolName + ", districtName=" + districtName + ", transcriptEligibility=" + transcriptEligibility + ", certificateEligibility=" + certificateEligibility
return "School [minCode=" + minCode + ", schoolId=" + schoolId + ", schoolName=" + schoolName + ", schoolCategoryCode=" + schoolCategoryCode + ", schoolCategoryLegacyCode=" + schoolCategoryLegacyCode
+ ", districtId=" + districtId + ", districtName=" + districtName + ", transcriptEligibility=" + transcriptEligibility + ", certificateEligibility=" + certificateEligibility
+ ", address1=" + address1 + ", address2=" + address2 + ", city=" + city + ", provCode=" + provCode + ", countryCode=" + countryCode + ", postal=" + postal + ", openFlag=" + openFlag
+ "]";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ private School convertSchoolDetailIntoSchoolClob(ca.bc.gov.educ.api.trax.model.d
school.setOpenFlag(schoolDetail.getClosedDate() == null? "Y" : "N");

// District
school.setDistrictId(schoolDetail.getDistrictId());
ca.bc.gov.educ.api.trax.model.dto.institute.District district = districtService.getDistrictByIdFromRedisCache(schoolDetail.getDistrictId());
if (district != null) {
school.setDistrictName(district.getDisplayName());
Expand Down

0 comments on commit 8458633

Please sign in to comment.