From d087ec79b3cc5fcc622383f7b955c40f5e2afdc7 Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Mon, 3 Aug 2026 16:50:33 +0900 Subject: [PATCH] =?UTF-8?q?260803=5F04=5FENH:=20=EB=AC=B8=EC=9E=90,=20?= =?UTF-8?q?=EC=9D=B4=EB=A9=94=EC=9D=BC=20=EB=B0=9C=EC=86=A1=EC=8B=9C=20?= =?UTF-8?q?=ED=83=80=EC=9D=B4=ED=8B=80=20=EC=B9=98=ED=99=98=EB=AC=B8?= =?UTF-8?q?=EC=9E=90=20=ED=8F=AC=ED=95=A8=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/common/external/notihub/NotiHubTemplateDto.java | 2 ++ .../java/com/kri/contact/server/service/MessageService.java | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/kri/contact/server/common/external/notihub/NotiHubTemplateDto.java b/src/main/java/com/kri/contact/server/common/external/notihub/NotiHubTemplateDto.java index c42a32a..918fc2f 100644 --- a/src/main/java/com/kri/contact/server/common/external/notihub/NotiHubTemplateDto.java +++ b/src/main/java/com/kri/contact/server/common/external/notihub/NotiHubTemplateDto.java @@ -16,6 +16,8 @@ public class NotiHubTemplateDto { @Schema(description = "tmplatIdx") private Long tmplatIdx; + @Schema(description = "tmplatTitle") + private String tmplatTitle; @Schema(description = "tmplatBody") private String tmplatBody; @Schema(description = "sendTel") diff --git a/src/main/java/com/kri/contact/server/service/MessageService.java b/src/main/java/com/kri/contact/server/service/MessageService.java index 7e466e2..f16520d 100644 --- a/src/main/java/com/kri/contact/server/service/MessageService.java +++ b/src/main/java/com/kri/contact/server/service/MessageService.java @@ -36,6 +36,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.stream.Collectors; import lombok.RequiredArgsConstructor; +import org.apache.commons.collections4.SetUtils; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -253,7 +254,10 @@ public class MessageService { } NotiHubTemplateDto template = notiHubApiClient.getTemplate(tmplatIdx); - Set templateParams = extractTemplateParams(template.getTmplatBody()); + Set titleParams = extractTemplateParams(template.getTmplatTitle()); + Set bodyParams = extractTemplateParams(template.getTmplatBody()); + Set templateParams = SetUtils.union(titleParams, bodyParams); + Map headerById = listHeaderService.getHeader(prjctIdx).stream() .collect(Collectors.toMap( ListHeaderDto::getListHderId,