保誠-保戶業務員媒合平台
HelenHuang
2021-12-30 ac594e4efb30ba28776d74b0fb08ab34d7c32023
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.pollex.pam.service.mapper;
 
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
 
import com.pollex.pam.domain.AppointmentMemo;
import com.pollex.pam.service.dto.AppointmentMemoCreateDTO;
import com.pollex.pam.service.dto.AppointmentMemoUpdateDTO;
 
@Service
public class AppointmentMemoMapper {
    
    public AppointmentMemo toAppointmentMemo(AppointmentMemoCreateDTO source) {
        AppointmentMemo target = new AppointmentMemo();
        BeanUtils.copyProperties(source, target);
        return target;
    }
 
    public AppointmentMemo copyToAppointmentMemo(AppointmentMemoUpdateDTO source, AppointmentMemo target) {
        BeanUtils.copyProperties(source, target);
        return target;
    }
}