CustomerQueryReq.java
3.73 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
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
package cn.fw.valhalla.sdk.param;
import cn.fw.valhalla.sdk.enums.CustomerFollowTypeEnum;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
/**
* @author : kurisu
* @className : CustomerQueryReq
* @description : 保有客查询参数
* @date: 2022-01-10 14:59
*/
@ToString
@EqualsAndHashCode
public class CustomerQueryReq implements Serializable {
private static final long serialVersionUID = 2363764577856885L;
/**
* 进站里程
* 单位km 最多指会取前两个元素
*/
private Integer[] arrivalMileage;
/**
* 车辆年限
* 向上取整
*/
private Integer[] ageLimit;
/**
* 客户星级
*/
private Integer level;
/**
* 是否是 并且条件
* 反之就是或者
*/
private boolean andCondition;
/**
* (以下独立于 andCondition 都是取并且)
* 保有客类型 (暂无)
*/
@Deprecated
private Integer customerType;
private Long groupId;
/**
* 是否包含公共池
*/
private Boolean includePublic;
/**
* 保有客跟进类型
*/
private CustomerFollowTypeEnum followType;
/**
* 车架号
*/
private String frameNo;
/**
* 门店id列表
*/
private List<Long> shopList;
/**
* 排除用户集
*/
private List<Long> excludeCustomerIds;
public Integer getCustomerType() {
return customerType;
}
public void setCustomerType(Integer customerType) {
this.customerType = customerType;
}
public CustomerFollowTypeEnum getFollowType() {
return followType;
}
public void setFollowType(CustomerFollowTypeEnum followType) {
this.followType = followType;
}
public void setType(Integer type) {
this.followType = CustomerFollowTypeEnum.ofValue(type);
}
public Integer[] getArrivalMileage() {
return arrivalMileage;
}
public void setArrivalMileage(Integer... arrivalMileage) {
if (arrivalMileage != null && arrivalMileage.length > 2) {
this.arrivalMileage = Arrays.copyOfRange(arrivalMileage, 0, 2);
return;
}
this.arrivalMileage = arrivalMileage;
}
public Integer[] getAgeLimit() {
return ageLimit;
}
public void setAgeLimit(Integer... ageLimit) {
if (ageLimit != null && ageLimit.length > 2) {
this.ageLimit = Arrays.copyOfRange(ageLimit, 0, 2);
return;
}
this.ageLimit = ageLimit;
}
public Integer getLevel() {
return level;
}
public void setLevel(Integer level) {
this.level = level;
}
public boolean isAndCondition() {
return andCondition;
}
public void setAndCondition(boolean andCondition) {
this.andCondition = andCondition;
}
public String getFrameNo() {
return frameNo;
}
public void setFrameNo(String frameNo) {
this.frameNo = frameNo;
}
public List<Long> getShopList() {
return shopList;
}
public void setShopList(List<Long> shopList) {
this.shopList = shopList;
}
public Long getGroupId() {
return groupId;
}
public void setGroupId(Long groupId) {
this.groupId = groupId;
}
public List<Long> getExcludeCustomerIds() {
return excludeCustomerIds;
}
public void setExcludeCustomerIds(List<Long> excludeCustomerIds) {
this.excludeCustomerIds = excludeCustomerIds;
}
public Boolean getIncludePublic() {
return includePublic;
}
public void setIncludePublic(final Boolean includePublic) {
this.includePublic = includePublic;
}
}