From f8ab133a7dc20562c25a092a402266f5e7b0b296 Mon Sep 17 00:00:00 2001 From: Jack <jack.su@pollex.com.tw> Date: 星期一, 24 一月 2022 10:29:38 +0800 Subject: [PATCH] Merge branch 'Phase3' of ssh://dev.pollex.com.tw:29418/pcalife/PAM into Phase3 --- pamapi/src/main/java/com/pollex/pam/service/PersonalNotificationService.java | 24 ++++++++++++++++++------ 1 files changed, 18 insertions(+), 6 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/service/PersonalNotificationService.java b/pamapi/src/main/java/com/pollex/pam/service/PersonalNotificationService.java index b6426cd..cad80e9 100644 --- a/pamapi/src/main/java/com/pollex/pam/service/PersonalNotificationService.java +++ b/pamapi/src/main/java/com/pollex/pam/service/PersonalNotificationService.java @@ -20,22 +20,22 @@ @Service @Transactional public class PersonalNotificationService { - + @Autowired PersonalNotificationRepository personalNotificationRepository; - + @Autowired ConsultantService consultantService; - + @Autowired AppointmentService appointmentService; - + @Autowired CustomerService customerService; - + @Autowired CustomerRepository customerRepository; - + @Autowired SatisfactionService satisfactionService; @@ -68,6 +68,18 @@ personalNotificationRepository.save(entity); } + public void createNotFillSatisfactionSumToCustomer(Long customerId, int notFillSatisfactionSum) { + PersonalNotification entity = new PersonalNotification(); + + String content = "���� "+notFillSatisfactionSum+" 蝑“���遛��漲��閬‵撖�"; + entity.setContent(content); + entity.setNotificationType(NotificationTypeEnum.ACTIVITY); + entity.setOwnerId(customerId); + entity.setOwnerRole(PersonalNotificationRoleEnum.CUSTOMER); + entity.setTitle("摰X皛踵�漲"); + personalNotificationRepository.save(entity); + } + public void createEditConsultantToConsultant(Consultant consultant) { PersonalNotification entity = new PersonalNotification(); String content = "����犖撣唾�身摰歇�脰��"; -- Gitblit v1.8.0