保誠-保戶業務員媒合平台
HelenHuang
2021-12-30 ac594e4efb30ba28776d74b0fb08ab34d7c32023
pamapi/src/main/java/com/pollex/pam/service/mapper/AppointmentCustomerViewMapper.java
@@ -6,16 +6,19 @@
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.pollex.pam.domain.AppointmentCustomerView;
import com.pollex.pam.service.dto.AppointmentCustomerViewDTO;
@Service
public class AppointmentCustomerViewMapper {
   @Transactional
   public AppointmentCustomerViewDTO toAppointmentCustomerViewDTO(AppointmentCustomerView source) {
      AppointmentCustomerViewDTO target = new AppointmentCustomerViewDTO();
      BeanUtils.copyProperties(source, target);
      target.setAppointmentMemoList(source.getAppointmentMemoList());
      return target;
   }