From bd82c1e3b7d6183cdafd09a3e65d74045f24790a Mon Sep 17 00:00:00 2001 From: ragdoll Date: Mon, 28 Jun 2021 14:14:16 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20=EC=95=84=EC=B9=B4=EC=9D=B4=EB=B9=99?= =?UTF-8?q?=EC=9D=84=20=EC=9E=91=EC=84=B1=ED=95=98=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EB=8A=94=20=EC=82=AC=EC=9A=A9=EC=9E=90=20=EB=AA=A9=EB=A1=9D=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20=EB=A1=9C=EC=A7=81=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [#47] --- .../careerzip/global/admin/service/NewsLetterService.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/careerzip/global/admin/service/NewsLetterService.java b/src/main/java/com/careerzip/global/admin/service/NewsLetterService.java index 0dcc80f..e1fbdbd 100644 --- a/src/main/java/com/careerzip/global/admin/service/NewsLetterService.java +++ b/src/main/java/com/careerzip/global/admin/service/NewsLetterService.java @@ -74,4 +74,10 @@ public void addRemindersCampaign() { } } } + + public List findAllNotArchivedContacts() { + QuestionPaper questionPaper = questionPaperRepository.findLatest().orElseThrow(QuestionPaperNotFoundException::new); + List accounts = accountRepository.findAllNotArchivedBy(questionPaper); + return ContactSummary.listOf(accounts); + } }