保誠-保戶業務員媒合平台
wayne
2021-12-03 6576d44fb39c4875fa56eaa105956153bec3efd8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
package com.pollex.pam.service.dto;
 
import com.fasterxml.jackson.annotation.JsonProperty;
import com.pollex.pam.enums.ContactStatusEnum;
 
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.List;
 
public class CustomerFavoriteConsultantDTO {
 
    @JsonProperty("new")
    private boolean newConsultant;
    private String agentNo;
    private String name;
    private String img;
    private List<String> expertise;
    private Float avgScore;
    private ContactStatusEnum contactStatus;
    private Instant createTime;
    private Instant updateTime;
    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;
    }
 
    public void setAgentNo(String agentNo) {
        this.agentNo = agentNo;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public String getImg() {
        return img;
    }
 
    public void setImg(String img) {
        this.img = img;
    }
 
    public List<String> getExpertise() {
        return expertise;
    }
 
    public void setExpertise(List<String> expertise) {
        this.expertise = expertise;
    }
 
    public Float getLatestAppointmentScore() {
        return latestAppointmentScore;
    }
 
    public void setLatestAppointmentScore(Float latestAppointmentScore) {
        this.latestAppointmentScore = latestAppointmentScore;
    }
 
    public Float getAvgScore() {
        return avgScore;
    }
 
    public void setAvgScore(Float avgScore) {
        this.avgScore = avgScore;
    }
 
    public ContactStatusEnum getContactStatus() {
        return contactStatus;
    }
 
    public void setContactStatus(ContactStatusEnum contactStatus) {
        this.contactStatus = contactStatus;
    }
 
    public Instant getLatestAppointmentDate() {
        return latestAppointmentDate;
    }
 
    public void setLatestAppointmentDate(Instant latestAppointmentDate) {
        this.latestAppointmentDate = latestAppointmentDate;
    }
 
    public Instant getCreateTime() {
        return createTime;
    }
 
    public Instant getUpdateTime() {
        return updateTime;
    }
 
    public void setCreateTime(Instant createTime) {
        this.createTime = createTime;
    }
 
    public void setUpdateTime(Instant updateTime) {
        this.updateTime = updateTime;
    }
 
    public String getRole() {
        return role;
    }
 
    public void setRole(String role) {
        this.role = role;
    }
 
    public String getSeniority() {
        return seniority;
    }
 
    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() {
        return appointments;
    }
 
    public void setAppointments(List<AppointmentCustomerViewDTO> appointments) {
        this.appointments = appointments;
    }
}