保誠-保戶業務員媒合平台
pamapi/src/main/java/com/pollex/pam/service/mapper/AppointmentMapper.java
@@ -17,7 +17,7 @@
@Service
public class AppointmentMapper {
   @Autowired
   AppointmentRepository appointmentRepository;
@@ -34,16 +34,17 @@
   public Satisfaction toSatisfaction(Appointment appointment) {
      Satisfaction target = new Satisfaction();
        target.setAppointmentId(appointment.getId());
      target.setAgentNo(appointment.getAgentNo());
      target.setCustomerId(appointment.getCustomerId());
      return target;
   }
   public Satisfaction toSatisfaction(Long appointmentId) {
      Appointment appointment = appointmentRepository.findById(appointmentId).get();
      return toSatisfaction(appointment);
   }
}