| | |
| | | @Autowired |
| | | SatisfactionService satisfactionService; |
| | | |
| | | public void customerCreateAppointment(AppointmentCreateDTO appointmentCreateDTO) { |
| | | public Appointment customerCreateAppointment(AppointmentCreateDTO appointmentCreateDTO) { |
| | | Appointment appointment = appointmentDTOMapper.toAppointment(appointmentCreateDTO); |
| | | appointment.setStatus(AVAILABLE); |
| | | appointment.setCustomerId(SecurityUtils.getCustomerDBId()); |
| | | appointment.setCommunicateStatus(ContactStatusEnum.RESERVED); |
| | | appointmentRepository.save(appointment); |
| | | return appointmentRepository.save(appointment); |
| | | } |
| | | |
| | | public void updateAppointment(AppointmentUpdateDTO updateAppointmentDTO) { |