Compare commits
2 Commits
6a72470a3c
...
7df341622e
| Author | SHA1 | Date | |
|---|---|---|---|
| 7df341622e | |||
| d087ec79b3 |
@@ -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")
|
||||
|
||||
@@ -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<String> templateParams = extractTemplateParams(template.getTmplatBody());
|
||||
Set<String> titleParams = extractTemplateParams(template.getTmplatTitle());
|
||||
Set<String> bodyParams = extractTemplateParams(template.getTmplatBody());
|
||||
Set<String> templateParams = SetUtils.union(titleParams, bodyParams);
|
||||
|
||||
Map<Integer, ListHeaderDto> headerById = listHeaderService.getHeader(prjctIdx).stream()
|
||||
.collect(Collectors.toMap(
|
||||
ListHeaderDto::getListHderId,
|
||||
|
||||
Reference in New Issue
Block a user