From 783f227a8d6962b290ef4a8bc0d0d5e12fc88e4c Mon Sep 17 00:00:00 2001
From: wayne <wayne8692wayne8692@gmail.com>
Date: 星期三, 08 十二月 2021 10:45:50 +0800
Subject: [PATCH] [update] 微調顧問詳細資訊命名

---
 pamapi/src/main/java/com/pollex/pam/domain/Appointment.java |   30 ++++++++++++++++++++++++++++--
 1 files changed, 28 insertions(+), 2 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 64245e1..096f448 100644
--- a/pamapi/src/main/java/com/pollex/pam/domain/Appointment.java
+++ b/pamapi/src/main/java/com/pollex/pam/domain/Appointment.java
@@ -5,7 +5,9 @@
 
 import javax.persistence.*;
 
+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;
 
@@ -54,9 +56,13 @@
 	@Column(name = "other_requirement")
     private String otherRequirement;
 
-    @LastModifiedDate
-	@Column(name = "appointment_date")
+    @CreatedDate
+	@Column(name = "appointment_date", updatable = false)
     private Instant appointmentDate;
+
+    @LastModifiedDate
+    @Column(name = "last_modified_date")
+    private Instant lastModifiedDate;
 
 	@Column(name = "agent_no")
     private String agentNo;
@@ -72,6 +78,10 @@
 
     @Column(name = "contact_time")
     private Instant contactTime;
+
+    @Enumerated(value = EnumType.STRING)
+    @Column(name = "status")
+    private AppointmentStatusEnum status;
 
 	public Long getId() {
 		return id;
@@ -208,4 +218,20 @@
     public void setContactTime(Instant markCommunicateTime) {
         this.contactTime = markCommunicateTime;
     }
+
+    public AppointmentStatusEnum getStatus() {
+        return status;
+    }
+
+    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