FollowDetailVO.java
1.98 KB
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
package cn.fw.valhalla.domain.vo.follow;
import cn.fw.common.json.MaskMobilePhone;
import cn.fw.valhalla.common.utils.StringUtils;
import lombok.Data;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
/**
* @author : kurisu
* @className : FollowDetailVO
* @description : 跟进详情
* @date: 2020-08-17 15:16
*/
@Data
public class FollowDetailVO {
private Long id;
/**
* 档案id
*/
private Long customerId;
/**
* 名称
*/
private String name;
/**
* 手机号
*/
@MaskMobilePhone
private String mobile;
/**
* 手机号归属
*/
private String region;
/**
* 真实电话号码
*/
private String realMobile;
/**
* 车牌号
*/
private String plateNo;
/**
* 车型
*/
private String carModel;
/**
* 标签
*/
private String tags;
/**
* 客户星级
*/
private Integer cusLevel;
/**
* 进站次数
*/
private Integer arrivalCount;
/**
* 所属服务顾问
*/
private Long adviserId;
/**
* 服务顾问名称
*/
private String adviserName;
/**
* 车架号
*/
private String vin;
/**
* 跟进任务id
*/
private Long taskId;
/**
* 逾期时间
*/
private Date deadline;
private String reason;
/**
* 是否已经打过电话
*/
private Boolean hadCall;
public long getCountdown() {
if (Objects.isNull(deadline)) {
return 0L;
}
long ms = deadline.getTime() - System.currentTimeMillis();
return ms / 1000;
}
public List<String> getTags() {
if (StringUtils.isValid(this.tags)) {
return Arrays.stream(this.tags.split(","))
.filter(StringUtils::isValid)
.collect(Collectors.toList());
}
return null;
}
}