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/dto/CustomerFavoriteConsultantDTO.java |   23 +++++++++--------------
 1 files changed, 9 insertions(+), 14 deletions(-)

diff --git a/pamapi/src/main/java/com/pollex/pam/service/dto/CustomerFavoriteConsultantDTO.java b/pamapi/src/main/java/com/pollex/pam/service/dto/CustomerFavoriteConsultantDTO.java
index 3142151..bdcdfd6 100644
--- a/pamapi/src/main/java/com/pollex/pam/service/dto/CustomerFavoriteConsultantDTO.java
+++ b/pamapi/src/main/java/com/pollex/pam/service/dto/CustomerFavoriteConsultantDTO.java
@@ -9,8 +9,6 @@
 
 public class CustomerFavoriteConsultantDTO {
 
-    @JsonProperty("new")
-    private boolean newConsultant;
     private String agentNo;
     private String name;
     private String img;
@@ -19,17 +17,10 @@
     private ContactStatusEnum contactStatus;
     private Instant createTime;
     private Instant updateTime;
+    private Instant customerViewTime;
     private String role;
     private String seniority;
     private List<AppointmentCustomerViewDTO> appointments;
-
-    public boolean isNewConsultant() {
-        if(createTime != null){
-            Instant nowTimestamp = Instant.now();
-            return ChronoUnit.DAYS.between(createTime, nowTimestamp) < 3;
-        }
-        return false;
-    }
 
     public String getAgentNo() {
         return agentNo;
@@ -95,6 +86,14 @@
         this.updateTime = updateTime;
     }
 
+    public Instant getCustomerViewTime() {
+        return customerViewTime;
+    }
+
+    public void setCustomerViewTime(Instant customerViewTime) {
+        this.customerViewTime = customerViewTime;
+    }
+
     public String getRole() {
         return role;
     }
@@ -109,10 +108,6 @@
 
     public void setSeniority(String seniority) {
         this.seniority = seniority;
-    }
-
-    public void setNewConsultant(boolean newConsultant) {
-        this.newConsultant = newConsultant;
     }
 
     public List<AppointmentCustomerViewDTO> getAppointments() {

--
Gitblit v1.8.0