From bf5a163bd84dfabb4fab275f6cbd27e5b0747e74 Mon Sep 17 00:00:00 2001
From: Jack <jack.su@pollex.com.tw>
Date: 星期三, 19 一月 2022 19:05:58 +0800
Subject: [PATCH] [ADD] 取得預約單細節新增預約單結案資料欄位

---
 pamapi/src/main/java/com/pollex/pam/service/mapper/AppointmentCustomerViewMapper.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/pamapi/src/main/java/com/pollex/pam/service/mapper/AppointmentCustomerViewMapper.java b/pamapi/src/main/java/com/pollex/pam/service/mapper/AppointmentCustomerViewMapper.java
index 65dec36..f3bb3fb 100644
--- a/pamapi/src/main/java/com/pollex/pam/service/mapper/AppointmentCustomerViewMapper.java
+++ b/pamapi/src/main/java/com/pollex/pam/service/mapper/AppointmentCustomerViewMapper.java
@@ -9,8 +9,10 @@
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
+import com.pollex.pam.domain.AppointmentClosedInfo;
 import com.pollex.pam.domain.AppointmentCustomerView;
 import com.pollex.pam.domain.AppointmentNoticeLog;
+import com.pollex.pam.service.AppointmentClosedInfoService;
 import com.pollex.pam.service.AppointmentNoticeLogService;
 import com.pollex.pam.service.AppointmentService;
 import com.pollex.pam.service.dto.AppointmentCustomerViewDTO;
@@ -24,6 +26,9 @@
 	@Autowired
 	AppointmentNoticeLogService appointmentNoticeLogService;
 	
+	@Autowired
+	AppointmentClosedInfoService appointmentClosedInfoService;
+	
 	@Transactional
 	public AppointmentCustomerViewDTO toAppointmentCustomerViewDTO(AppointmentCustomerView source) {
 		AppointmentCustomerViewDTO target = new AppointmentCustomerViewDTO();
@@ -32,6 +37,8 @@
 		appointmentService.setInterviewRecordDTO(target);
 		List<AppointmentNoticeLog> noticeLogs = appointmentNoticeLogService.findByAppointmentId(source.getId());
 		target.setAppointmentNoticeLogs(noticeLogs);
+		AppointmentClosedInfo appointmentClosedInfo = appointmentClosedInfoService.findByAppointmentId(source.getId());
+		target.setAppointmentClosedInfo(appointmentClosedInfo);
 		return target;
 	}
 

--
Gitblit v1.8.0