From 41bc5df9cda6a43ef47313622dd1ffde1480d06f Mon Sep 17 00:00:00 2001
From: KillerADO <wayne8692wayne8692@gmail.com>
Date: 星期四, 23 十二月 2021 10:49:04 +0800
Subject: [PATCH] [update] 調整簡訊的service url與新增簡訊的標題欄位

---
 pamapi/src/main/java/com/pollex/pam/domain/Appointment.java |   29 ++++++++++++++++++++++++++---
 1 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/pamapi/src/main/java/com/pollex/pam/domain/Appointment.java b/pamapi/src/main/java/com/pollex/pam/domain/Appointment.java
index 882613c..6e53c8e 100644
--- a/pamapi/src/main/java/com/pollex/pam/domain/Appointment.java
+++ b/pamapi/src/main/java/com/pollex/pam/domain/Appointment.java
@@ -7,6 +7,7 @@
 
 import com.pollex.pam.enums.AppointmentStatusEnum;
 import com.pollex.pam.enums.ContactStatusEnum;
+import org.springframework.data.annotation.CreatedDate;
 import org.springframework.data.annotation.LastModifiedDate;
 import org.springframework.data.jpa.domain.support.AuditingEntityListener;
 
@@ -55,9 +56,12 @@
 	@Column(name = "other_requirement")
     private String otherRequirement;
 
-    @LastModifiedDate
-	@Column(name = "appointment_date")
-    private Instant appointmentDate;
+    @CreatedDate
+	@Column(name = "appointment_date", updatable = false)
+    private Instant appointmentDate = Instant.now();
+
+    @Column(name = "last_modified_date")
+    private Instant lastModifiedDate = Instant.now();
 
 	@Column(name = "agent_no")
     private String agentNo;
@@ -70,6 +74,9 @@
 
     @Column(name = "consultant_read_time")
     private Instant consultantReadTime;
+
+    @Column(name = "contact_time")
+    private Instant contactTime;
 
     @Enumerated(value = EnumType.STRING)
     @Column(name = "status")
@@ -203,6 +210,14 @@
         this.consultantReadTime = consultantReadTime;
     }
 
+    public Instant getContactTime() {
+        return contactTime;
+    }
+
+    public void setContactTime(Instant markCommunicateTime) {
+        this.contactTime = markCommunicateTime;
+    }
+
     public AppointmentStatusEnum getStatus() {
         return status;
     }
@@ -210,4 +225,12 @@
     public void setStatus(AppointmentStatusEnum status) {
         this.status = status;
     }
+
+    public Instant getLastModifiedDate() {
+        return lastModifiedDate;
+    }
+
+    public void setLastModifiedDate(Instant lastModifiedDate) {
+        this.lastModifiedDate = lastModifiedDate;
+    }
 }

--
Gitblit v1.8.0