| | |
| | | appointmentRepository.save(appointment); |
| | | } |
| | | |
| | | public void updateAppointment(AppointmentDTO appointmentDTO) { |
| | | Appointment appointment = appointmentDTOMapper.toAppointment(appointmentDTO); |
| | | appointment.setStatus(AVAILABLE); |
| | | appointmentRepository.save(appointment); |
| | | } |
| | | |
| | | public void markAppointmentDeleted(Long appointmentId) { |
| | | Appointment appointment = appointmentRepository.findById(appointmentId).get(); |
| | | appointment.setStatus(DELETED); |
| | | appointmentRepository.save(appointment); |
| | | } |
| | | |
| | | public List<Appointment> findByAgentNo(String agentNo) { |
| | | return appointmentRepository.findByAgentNo(agentNo); |
| | | } |
| | |
| | | else { |
| | | log.debug("this appointment was read, read time = {}", appointment.getConsultantReadTime()); |
| | | } |
| | | } |
| | | |
| | | public void updateAppointment(AppointmentDTO appointmentDTO) { |
| | | Appointment appointment = appointmentDTOMapper.toAppointment(appointmentDTO); |
| | | appointmentRepository.save(appointment); |
| | | } |
| | | |
| | | public void markAppointmentDeleted(Long appointmentId) { |
| | | Appointment appointment = appointmentRepository.findById(appointmentId).get(); |
| | | appointment.setStatus(DELETED); |
| | | appointmentRepository.save(appointment); |
| | | } |
| | | |
| | | public void recordAllAppointmentsView(String agentNo) { |