From 4bd2de348a1e122cddbd8a444c5c6a2c2ddbf330 Mon Sep 17 00:00:00 2001 From: jyj1289 Date: Sun, 8 Sep 2024 23:59:23 +0900 Subject: [PATCH] =?UTF-8?q?feat(#119):=20=ED=8A=B9=EB=A1=80=EC=9E=85?= =?UTF-8?q?=ED=95=99=20=ED=85=9C=ED=94=8C=EB=A6=BF=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?-=20=ED=8A=B9=EB=A1=80=EC=9E=85=ED=95=99=20=ED=85=9C=ED=94=8C?= =?UTF-8?q?=EB=A6=BF=EC=9D=84=20=EC=B6=94=EA=B0=80=ED=96=88=EC=96=B4?= =?UTF-8?q?=EC=9A=94.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maru/application/form/ExportFormUseCase.java | 9 +++++++++ .../maru/infrastructure/thymeleaf/Templates.java | 2 ++ 2 files changed, 11 insertions(+) diff --git a/src/main/java/com/bamdoliro/maru/application/form/ExportFormUseCase.java b/src/main/java/com/bamdoliro/maru/application/form/ExportFormUseCase.java index 98618476..c949649e 100644 --- a/src/main/java/com/bamdoliro/maru/application/form/ExportFormUseCase.java +++ b/src/main/java/com/bamdoliro/maru/application/form/ExportFormUseCase.java @@ -116,6 +116,15 @@ private List getRequiredTemplates(Form form) { Templates.DOCUMENT, Templates.WRITTEN_OATH ); + } else if (form.getType().isSpecialAdmission()) { + return List.of( + Templates.FORM, + Templates.GRADE_TABLE, + Templates.DOCUMENT, + Templates.WRITTEN_OATH, + Templates.SPECIAL_ADMISSION, + Templates.CONFIRMATION + ); } return List.of( diff --git a/src/main/java/com/bamdoliro/maru/infrastructure/thymeleaf/Templates.java b/src/main/java/com/bamdoliro/maru/infrastructure/thymeleaf/Templates.java index 510313c8..c5e4a0e7 100644 --- a/src/main/java/com/bamdoliro/maru/infrastructure/thymeleaf/Templates.java +++ b/src/main/java/com/bamdoliro/maru/infrastructure/thymeleaf/Templates.java @@ -13,4 +13,6 @@ public class Templates { public static final String PROOF_OF_APPLICATION = "proof-of-application"; public static final String GRADE_TABLE = "grade-table"; public static final String WRITTEN_OATH = "written-oath"; + public static final String SPECIAL_ADMISSION = "special-admission"; + public static final String CONFIRMATION = "confirmation"; }