From a3716f72066d25d745f4d5103ff23a553c3e102b Mon Sep 17 00:00:00 2001
From: wayne <wayne8692wayne8692@gmail.com>
Date: 星期四, 17 二月 2022 11:41:19 +0800
Subject: [PATCH] Merge branch 'sit' into uat

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

diff --git a/pamapi/src/main/java/com/pollex/pam/service/AppointmentNoticeLogService.java b/pamapi/src/main/java/com/pollex/pam/service/AppointmentNoticeLogService.java
new file mode 100644
index 0000000..bfb0134
--- /dev/null
+++ b/pamapi/src/main/java/com/pollex/pam/service/AppointmentNoticeLogService.java
@@ -0,0 +1,33 @@
+package com.pollex.pam.service;
+
+import java.util.List;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import com.pollex.pam.domain.AppointmentNoticeLog;
+import com.pollex.pam.repository.AppointmentNoticeLogRepository;
+import com.pollex.pam.service.dto.AppointmentNoticeSendDTO;
+import com.pollex.pam.service.mapper.AppointmentNoticeSendMapper;
+
+@Service
+@Transactional
+public class AppointmentNoticeLogService {
+	
+	@Autowired
+	AppointmentNoticeLogRepository appointmentNoticeLogRepository;
+	
+	@Autowired
+	AppointmentNoticeSendMapper appointmentNoticeSendMapper;
+
+	public AppointmentNoticeLog create(AppointmentNoticeSendDTO noticeSendDTO) {
+		AppointmentNoticeLog appointmentNoticeLog = 
+				appointmentNoticeSendMapper.toAppointmentNoticeLog(noticeSendDTO);
+		return appointmentNoticeLogRepository.save(appointmentNoticeLog);
+	}
+	
+	public List<AppointmentNoticeLog> findByAppointmentId(Long appointmentId){
+		return appointmentNoticeLogRepository.findByAppointmentId(appointmentId);
+	}
+}

--
Gitblit v1.8.0