保誠-保戶業務員媒合平台
HelenHuang
2021-12-30 ac594e4efb30ba28776d74b0fb08ab34d7c32023
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 com.pollex.pam.domain.Customer;
import com.pollex.pam.service.dto.CustomerDTO;
import org.springframework.stereotype.Service;
 
@Service
public class CustomerMapper {
 
    public CustomerDTO toDto(Customer customer) {
        CustomerDTO dto = new CustomerDTO();
        dto.setEmail(customer.getEmail());
        dto.setPhone(customer.getPhone());
        dto.setName(customer.getName());
 
        return dto;
    }
 
}