保誠-保戶業務員媒合平台
wayne
2022-02-17 34b08e1c461f5e08675fcff95525956d7c4bef11
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
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 ConsultantDTO {
 
    @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 updateTime;
    private String role;
    private String seniority;
    private int suitability;
 
    public boolean isNewConsultant() {
        if(updateTime != null){
            Instant nowTimestamp = Instant.now();
            return ChronoUnit.DAYS.between(updateTime, 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 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 getUpdateTime() {
        return updateTime;
    }
 
    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 int getSuitability() {
        return suitability;
    }
 
    public void setSuitability(int suitability) {
        this.suitability = suitability;
    }
}