保誠-保戶業務員媒合平台
wayne
2022-01-22 a6b0be5d9e6e21b050d1d46c30aa0200d82ec4d5
pamapi/src/main/java/com/pollex/pam/service/PersonalNotificationService.java
@@ -67,6 +67,18 @@
      entity.setTitle("顧問約訪通知");
      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("客戶滿意度");
        personalNotificationRepository.save(entity);
    }
   public void createEditConsultantToConsultant(Consultant consultant) {
      PersonalNotification entity = new PersonalNotification();