From 6ffa7f7f1d8f5b414832edd6c3a553732d60f248 Mon Sep 17 00:00:00 2001 From: mogld <143364802+mogld@users.noreply.github.com> Date: Sun, 10 Nov 2024 15:32:19 +0900 Subject: [PATCH] refactor: guardianExcel --- src/main/java/dbdr/domain/excel/service/ExcelUploadService.java | 2 +- src/main/java/dbdr/domain/guardian/entity/Guardian.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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시로 초기화 }