保誠-保戶業務員媒合平台
wayne
2021-11-22 7dfed155bc4f5a1c7cf5a592e8325dc1ba9243bc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.pollex.pam.service.mapper;
 
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
 
import com.pollex.pam.domain.Appointment;
import com.pollex.pam.enums.ContactStatusEnum;
import com.pollex.pam.service.dto.AppointmentCreateDTO;
 
@Service
public class AppointmentDTOMapper {
    
    public Appointment toAppointment(AppointmentCreateDTO source) {
        Appointment target = new Appointment();
        BeanUtils.copyProperties(source, target);
        return target;
    }
}