保誠-保戶業務員媒合平台
KillerADO
2021-12-23 41bc5df9cda6a43ef47313622dd1ffde1480d06f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.pollex.pam.service.mapper;
 
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
 
import com.pollex.pam.domain.Customer;
import com.pollex.pam.service.dto.CustomerRegisterDTO;
 
@Service
public class CustomerDTOMapper {
    
    public Customer toCustomer(CustomerRegisterDTO source) {
        Customer target = new Customer();
        BeanUtils.copyProperties(source, target);
        return target;
    }
}