保誠-保戶業務員媒合平台
wayne
2022-01-26 6fa4bba623713c396432ba8b863846883d6a1906
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.pollex.pam.service.mapper;
 
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
 
import com.pollex.pam.domain.AppointmentNoticeLog;
import com.pollex.pam.service.dto.AppointmentNoticeSendDTO;
 
@Service
public class AppointmentNoticeSendMapper {
    
    public AppointmentNoticeLog toAppointmentNoticeLog(AppointmentNoticeSendDTO source) {
        AppointmentNoticeLog target = new AppointmentNoticeLog();
        BeanUtils.copyProperties(source, target);
//        target.setAppointmentId(source.getAppointmentId());
        target.setContent(source.getMessage());
//        target.setEmail(source.getEmail());
//        target.setPhone(source.getPhone());
        return target;
    }
}