From 2ad11fa39ac42b17dc1b34b01788322855fa2e3e Mon Sep 17 00:00:00 2001
From: wayne <wayne8692wayne8692@gmail.com>
Date: 星期一, 13 十二月 2021 12:16:11 +0800
Subject: [PATCH] [update] 【todo 132231】修正顧問清單的更新時間在有預約單刪除後應為刪除時間

---
 pamapi/src/main/java/com/pollex/pam/domain/Customer.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/pamapi/src/main/java/com/pollex/pam/domain/Customer.java b/pamapi/src/main/java/com/pollex/pam/domain/Customer.java
index 9a94a8c..c3055cc 100644
--- a/pamapi/src/main/java/com/pollex/pam/domain/Customer.java
+++ b/pamapi/src/main/java/com/pollex/pam/domain/Customer.java
@@ -51,6 +51,11 @@
     @JsonIgnore
     private Instant lastModifiedDate = Instant.now();
 
+    @CreatedDate
+    @Column(name = "agree_personal_information_time", updatable = false)
+    @JsonIgnore
+    private Instant agreePersonalInformationTime;
+
 	public Long getId() {
 		return id;
 	}
@@ -107,6 +112,14 @@
 		this.contactType = contactType;
 	}
 
+    public Instant getAgreePersonalInformationTime() {
+        return agreePersonalInformationTime;
+    }
+
+    public void setAgreePersonalInformationTime(Instant agreePersonalInformationTime) {
+        this.agreePersonalInformationTime = agreePersonalInformationTime;
+    }
+
     public String toAccountString() {
     	return Optional.ofNullable(getPhone())
 				.filter(StringUtils::hasText)

--
Gitblit v1.8.0