Skip to content

Commit

Permalink
๐Ÿ”— :: (#680) ํ•ฉ๊ฒฉ ํ†ต์ง€ ๋ฌธ๊ตฌ ๋ณ€๊ฒฝ
Browse files Browse the repository at this point in the history
  • Loading branch information
4mjeo authored Jun 10, 2024
2 parents 16a2e25 + 61d187f commit 9b08a63
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,14 @@ public void onApplicationStatusChanged(ApplicationsStatusChangedEvent event) {
event.getApplications().stream().map(Application::getRecruitmentId).toList()
);
for (Application application : event.getApplications()) {
String content = "์ง€์›์„œ ์ƒํƒœ๊ฐ€ " + event.getStatus().getName() + "์œผ๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.";
if (event.getStatus() == ApplicationStatus.PASS) {
content = companyNameMap.get(application.getRecruitmentId()) + "์— ํ•ฉ๊ฒฉํ•˜์…จ์Šต๋‹ˆ๋‹ค.";
}

Notification notification = Notification.builder()
.title(companyNameMap.get(application.getRecruitmentId()))
.content("์ง€์›์„œ ์ƒํƒœ๊ฐ€ " + event.getStatus().getName() + "์œผ๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.")
.content(content)
.userId(application.getStudentId())
.topic(Topic.APPLICATION_STATUS_CHANGED)
.detailId(application.getId())
Expand Down

0 comments on commit 9b08a63

Please sign in to comment.