保誠-保戶業務員媒合平台
Jack
2022-01-13 03e918bf6861d9b62b2ad0c5d043086969e0d9f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.pollex.pam.service.mapper;
 
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();
        target.setAppointmentId(source.getAppointmentId());
        target.setContent(source.getMessage());
        target.setEmail(source.getEmail());
        target.setPhone(source.getPhone());
        return target;
    }
}