| | |
| | | |
| | | @Autowired |
| | | SatisfactionRepository satisfactionRepository; |
| | | |
| | | @Autowired |
| | | PersonalNotificationService personalNotificationService; |
| | | |
| | | public List<CustomerFavoriteConsultantDTO> getMyConsultantList() { |
| | | Long customerId = SecurityUtils.getCustomerDBId(); |
| | |
| | | .orElseThrow(ConsultantNotFoundException::new); |
| | | consultantDTOMapper.copyToConsultant(editDTO, consultant); |
| | | FileUtil.base64ToFile(editDTO.getPhotoBase64(), editDTO.getPhotoFileName(), applicationProperty.getFileFolderPath()); |
| | | return consultantRepository.save(consultant); |
| | | consultantRepository.save(consultant); |
| | | personalNotificationService.createEditConsultantToConsultant(consultant); |
| | | return consultant; |
| | | } |
| | | |
| | | public InputStream getAvatarImage(String agentNo) { |
| | |
| | | String content = genSendSatisfactionSMSContent(appointment); |
| | | sendMsgService.sendMsgBySMS(appointment.getPhone(), content); |
| | | } |
| | | |
| | | personalNotificationService.createSendSatisfactionToClientToCustomer(appointment); |
| | | } |
| | | |
| | | private String genSendSatisfactionSMSContent(Appointment appointment) { |