From 9136e0b88e812095e145ebae6ef2fcb0cb7e5c8a Mon Sep 17 00:00:00 2001 From: Jack <jack.su@pollex.com.tw> Date: 星期五, 14 一月 2022 18:03:06 +0800 Subject: [PATCH] [ADD] 約訪通知新增欄位"預計約訪時間" --- pamapi/src/doc/約訪通知API/發送約訪通知API.txt | 4 +++- pamapi/src/doc/sql/20220114_j.sql | 2 ++ pamapi/src/main/java/com/pollex/pam/domain/AppointmentNoticeLog.java | 13 ++++++++++++- pamapi/src/main/java/com/pollex/pam/service/dto/AppointmentNoticeSendDTO.java | 9 +++++++++ 4 files changed, 26 insertions(+), 2 deletions(-) diff --git a/pamapi/src/doc/sql/20220114_j.sql b/pamapi/src/doc/sql/20220114_j.sql new file mode 100644 index 0000000..1d10e9d --- /dev/null +++ b/pamapi/src/doc/sql/20220114_j.sql @@ -0,0 +1,2 @@ +-- appointment_notice_log �憓�赤������ +ALTER TABLE appointment_notice_log ADD interview_date timestamp null; \ No newline at end of file diff --git "a/pamapi/src/doc/\347\264\204\350\250\252\351\200\232\347\237\245API/\347\231\274\351\200\201\347\264\204\350\250\252\351\200\232\347\237\245API.txt" "b/pamapi/src/doc/\347\264\204\350\250\252\351\200\232\347\237\245API/\347\231\274\351\200\201\347\264\204\350\250\252\351\200\232\347\237\245API.txt" index 2fe30cd..6ccd657 100644 --- "a/pamapi/src/doc/\347\264\204\350\250\252\351\200\232\347\237\245API/\347\231\274\351\200\201\347\264\204\350\250\252\351\200\232\347\237\245API.txt" +++ "b/pamapi/src/doc/\347\264\204\350\250\252\351\200\232\347\237\245API/\347\231\274\351\200\201\347\264\204\350\250\252\351\200\232\347\237\245API.txt" @@ -4,6 +4,7 @@ message: �����摰� appointmentId : 蝝赤�����id +interviewDate: ����赤��挾 request body: @@ -11,5 +12,6 @@ "message":"notice customer invterview time", "email":"pollex@gmail.com", "phone":"0912345678", - "appointmentId": 385 + "appointmentId": 406, + "interviewDate":"2022-11-01T08:00:00.000" } \ No newline at end of file diff --git a/pamapi/src/main/java/com/pollex/pam/domain/AppointmentNoticeLog.java b/pamapi/src/main/java/com/pollex/pam/domain/AppointmentNoticeLog.java index 89a15f0..10c6173 100644 --- a/pamapi/src/main/java/com/pollex/pam/domain/AppointmentNoticeLog.java +++ b/pamapi/src/main/java/com/pollex/pam/domain/AppointmentNoticeLog.java @@ -2,6 +2,7 @@ import java.io.Serializable; import java.time.Instant; +import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; @@ -50,8 +51,10 @@ @CreatedDate @Column(name = "created_date", updatable = false) -// @JsonIgnore private Instant createdDate = Instant.now(); + + @Column(name = "interview_date") + private Date interviewDate; public Long getId() { return id; @@ -116,6 +119,14 @@ public void setCreatedDate(Instant createdDate) { this.createdDate = createdDate; } + + public Date getInterviewDate() { + return interviewDate; + } + + public void setInterviewDate(Date interviewDate) { + this.interviewDate = interviewDate; + } diff --git a/pamapi/src/main/java/com/pollex/pam/service/dto/AppointmentNoticeSendDTO.java b/pamapi/src/main/java/com/pollex/pam/service/dto/AppointmentNoticeSendDTO.java index 9aa0fbf..2256fc8 100644 --- a/pamapi/src/main/java/com/pollex/pam/service/dto/AppointmentNoticeSendDTO.java +++ b/pamapi/src/main/java/com/pollex/pam/service/dto/AppointmentNoticeSendDTO.java @@ -1,5 +1,7 @@ package com.pollex.pam.service.dto; +import java.util.Date; + public class AppointmentNoticeSendDTO { private String message; @@ -7,6 +9,7 @@ private String email; private String phone; // private String noticeType; + private Date interviewDate; public String getMessage() { return message; @@ -38,6 +41,12 @@ public void setPhone(String phone) { this.phone = phone; } + public Date getInterviewDate() { + return interviewDate; + } + public void setInterviewDate(Date interviewDate) { + this.interviewDate = interviewDate; + } -- Gitblit v1.8.0