diff --git a/src/main/java/dbdr/domain/excel/service/ExcelUploadService.java b/src/main/java/dbdr/domain/excel/service/ExcelUploadService.java index be889d03..afa82ea5 100644 --- a/src/main/java/dbdr/domain/excel/service/ExcelUploadService.java +++ b/src/main/java/dbdr/domain/excel/service/ExcelUploadService.java @@ -132,7 +132,7 @@ private void processGuardianRow(Row row, List successList Guardian guardian = Guardian.builder() .name(name) .phone(phone) - //.institution(institution) //가디언 빌더에 추가필요 + .institution(institution) .build(); guardianRepository.save(guardian); diff --git a/src/main/java/dbdr/domain/guardian/entity/Guardian.java b/src/main/java/dbdr/domain/guardian/entity/Guardian.java index d98bb41a..3f9ac986 100644 --- a/src/main/java/dbdr/domain/guardian/entity/Guardian.java +++ b/src/main/java/dbdr/domain/guardian/entity/Guardian.java @@ -53,6 +53,7 @@ public class Guardian extends BaseEntity { public Guardian(String loginId, String loginPassword, String phone, String name, Institution institution) { this.phone = phone; this.name = name; + this.institution = institution; this.alertTime = LocalTime.of(18, 0); // 오후 6시로 초기화 }