This commit is contained in:
@@ -11,7 +11,8 @@ import lombok.*;
|
|||||||
@Builder
|
@Builder
|
||||||
public class MessageRecipient {
|
public class MessageRecipient {
|
||||||
private String username;
|
private String username;
|
||||||
private String userId; //email
|
private String userId;
|
||||||
|
private String email;
|
||||||
private String phone;
|
private String phone;
|
||||||
private String messengerId;
|
private String messengerId;
|
||||||
|
|
||||||
@@ -20,6 +21,7 @@ public class MessageRecipient {
|
|||||||
MessageRecipient recipient = new MessageRecipient();
|
MessageRecipient recipient = new MessageRecipient();
|
||||||
recipient.setUsername(user.getUserName());
|
recipient.setUsername(user.getUserName());
|
||||||
recipient.setUserId(user.getEmailAddr());
|
recipient.setUserId(user.getEmailAddr());
|
||||||
|
recipient.setEmail(user.getEmailAddr());
|
||||||
recipient.setPhone(user.getPhoneNumber());
|
recipient.setPhone(user.getPhoneNumber());
|
||||||
return recipient;
|
return recipient;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ public class MessageSendService {
|
|||||||
processSingleRecipient(user, template.get(), messageParams);
|
processSingleRecipient(user, template.get(), messageParams);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.error("메세지 템플릿이 존재 하지 않음 - {}", messageCode);
|
log.warn("메세지 템플릿이 존재 하지 않음 - {}", messageCode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ public class MessageSendService {
|
|||||||
List<MessageRecipient> recipients = new ArrayList<>();
|
List<MessageRecipient> recipients = new ArrayList<>();
|
||||||
|
|
||||||
for (UserInfo user : template.getAdditionalRecipients()) {
|
for (UserInfo user : template.getAdditionalRecipients()) {
|
||||||
MessageRecipient messageRecipient = new MessageRecipient(user.getUsername(), user.getUserid(), user.getCphnno(), user.getUserid());
|
MessageRecipient messageRecipient = new MessageRecipient(user.getUsername(), user.getUserid(), user.getEmad(), user.getCphnno(), user.getUserid());
|
||||||
recipients.add(messageRecipient);
|
recipients.add(messageRecipient);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user