| | |
| | | personalNotificationRepository.save(entity); |
| | | } |
| | | |
| | | public void createNotFillSatisfactionSumToCustomer(Long customerId, int notFillSatisfactionSum) { |
| | | public void createNotFillAppointmentSatisfactionNumberToCustomer(Long customerId, int notFillSatisfactionSum) { |
| | | PersonalNotification entity = new PersonalNotification(); |
| | | |
| | | String content = "您有 "+notFillSatisfactionSum+" 筆顧問的滿意度需要填寫"; |
| | |
| | | readAllNotification(PersonalNotificationRoleEnum.CUSTOMER, SecurityUtils.getCustomerDBId()); |
| | | } |
| | | } |
| | | |
| | | |
| | | public void readAllNotification(PersonalNotificationRoleEnum ownerRole |
| | | , Long ownerId) { |
| | | List<PersonalNotification> allNotification = personalNotificationRepository.findAllByOwnerRoleAndOwnerId(ownerRole, ownerId); |