From 34b07249c7e7a9f487a6bc08f022db6bcb925d42 Mon Sep 17 00:00:00 2001 From: Jack <jack.su@pollex.com.tw> Date: 星期四, 20 一月 2022 14:46:35 +0800 Subject: [PATCH] [UPDATE] 調整客戶填寫滿意度的API [UPDATE] 調整產生滿意度調查資料的時機點,改為每次進到結案狀態就新增滿意度資料 [UPDATE] 調整結案API,新增和修改都使用同一支API由後端判斷為新增或修改 [BUG] 當沒有任何一筆滿意度的時候取得顧問平均分數會發生錯誤的問題修正 --- pamapi/src/main/java/com/pollex/pam/service/dto/CustomerFavoriteConsultantDTO.java | 50 +++++++++----------------------------------------- 1 files changed, 9 insertions(+), 41 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 78bc277..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,20 +17,10 @@ private ContactStatusEnum contactStatus; private Instant createTime; private Instant updateTime; + private Instant customerViewTime; private String role; private String seniority; - private Long latestAppointmentId; - private Instant latestAppointmentDate; - private Float latestAppointmentScore; 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; @@ -66,14 +54,6 @@ this.expertise = expertise; } - public Float getLatestAppointmentScore() { - return latestAppointmentScore; - } - - public void setLatestAppointmentScore(Float latestAppointmentScore) { - this.latestAppointmentScore = latestAppointmentScore; - } - public Float getAvgScore() { return avgScore; } @@ -88,14 +68,6 @@ public void setContactStatus(ContactStatusEnum contactStatus) { this.contactStatus = contactStatus; - } - - public Instant getLatestAppointmentDate() { - return latestAppointmentDate; - } - - public void setLatestAppointmentDate(Instant latestAppointmentDate) { - this.latestAppointmentDate = latestAppointmentDate; } public Instant getCreateTime() { @@ -114,6 +86,14 @@ this.updateTime = updateTime; } + public Instant getCustomerViewTime() { + return customerViewTime; + } + + public void setCustomerViewTime(Instant customerViewTime) { + this.customerViewTime = customerViewTime; + } + public String getRole() { return role; } @@ -128,18 +108,6 @@ public void setSeniority(String seniority) { this.seniority = seniority; - } - - public void setNewConsultant(boolean newConsultant) { - this.newConsultant = newConsultant; - } - - public Long getLatestAppointmentId() { - return latestAppointmentId; - } - - public void setLatestAppointmentId(Long latestAppointmentId) { - this.latestAppointmentId = latestAppointmentId; } public List<AppointmentCustomerViewDTO> getAppointments() { -- Gitblit v1.8.0