保誠-保戶業務員媒合平台
wayne
2021-12-02 e8a53c081980ce1a5a9e1a36c822edab15ea42e0
pamapi/src/main/java/com/pollex/pam/service/AppointmentService.java
@@ -41,7 +41,7 @@
   @Autowired
   AppointmentCustomerViewRepository appointmentCustomerViewRepository;
   @Autowired
   SatisfactionService satisfactionService;
@@ -50,7 +50,7 @@
      appointment.setCustomerId(SecurityUtils.getCustomerDBId());
      appointment.setCommunicateStatus(ContactStatusEnum.RESERVED);
      appointmentRepository.save(appointment);
   }
   public List<Appointment> findByAgentNo(String agentNo) {
@@ -61,6 +61,7 @@
      Appointment appointment = appointmentRepository.findById(appointmentId).get();
      appointment.setCommunicateStatus(ContactStatusEnum.CONTACTED);
        appointment.setContactTime(Instant.now());
      return appointmentRepository.save(appointment);
   }