保誠-保戶業務員媒合平台
pamapi/src/main/java/com/pollex/pam/service/ConsultantService.java
@@ -89,6 +89,9 @@
    @Autowired
    SatisfactionRepository satisfactionRepository;
    @Autowired
    PersonalNotificationService personalNotificationService;
    public List<CustomerFavoriteConsultantDTO> getMyConsultantList() {
        Long customerId = SecurityUtils.getCustomerDBId();
@@ -248,7 +251,9 @@
            .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) {
@@ -275,6 +280,8 @@
         String content = genSendSatisfactionSMSContent(appointment);
         sendMsgService.sendMsgBySMS(appointment.getPhone(), content);
      }
      personalNotificationService.createSendSatisfactionToClientToCustomer(appointment);
   }
   
   private String genSendSatisfactionSMSContent(Appointment appointment) {