From b8a9ab562c0d87de1d0c1ee2e51c2d8b7883f5b0 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期一, 24 一月 2022 12:06:32 +0800 Subject: [PATCH] Merge branch 'stmp' 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