保誠-保戶業務員媒合平台
HelenHuang
2022-01-20 f5831acafe510f9a79f8e2ecf6dee09026d67fc6
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;
    }
}