EntmicroCustomerFollow.java
1.94 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
package cn.com.glsx.entmicro.entity;
import cn.com.glsx.entmicro.model.request.FollowTagRequest;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.persistence.*;
import java.util.List;
import java.util.Objects;
@Data
@Accessors(chain = true)
@Table(name = "entmicro_customer_follow")
public class EntmicroCustomerFollow extends BaseEntity {
/**
* 客户id
*/
@Column(name = "customer_id")
private Integer customerId;
/**
* 员工id
*/
@Column(name = "staff_id")
private Integer staffId;
/**
* 备注
*/
private String remark;
/**
* 描述
*/
private String description;
/**
* 备注的手机号
*/
@Column(name = "remark_mobiles")
private String remarkMobiles;
/**
* 来源
*/
@Column(name = "add_way")
private Integer addWay;
/**
* '发起添加的userid',如果成员主动添加,为成员的userid;如果是客户主动添加,则为客户的外部联系人userid;如果是内部成员共享/管理员分配,则为对应的成员/管理员userid
*/
@Column(name = "oper_userid")
private String operUserid;
@Transient
private String userid;
/**
* 添加渠道
*/
@Column(name = "state")
private String state;
@Transient
private Integer merchantId;
/**
* 客户userId
*/
@Transient
private String externalUserId;
/**
* 标签数据
*/
private List<FollowTagRequest> tagList;
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
EntmicroCustomerFollow that = (EntmicroCustomerFollow) o;
return Objects.equals(customerId, that.customerId) &&
Objects.equals(staffId, that.staffId);
}
@Override
public int hashCode() {
return Objects.hash(customerId, staffId);
}
}