Blame view

fw-valhalla-sdk/src/main/java/cn/fw/valhalla/sdk/param/CustomerQueryReq.java 3.73 KB
03c1a9b3   张志伟   :sparkles:
1
2
3
4
5
6
  package cn.fw.valhalla.sdk.param;
  
  import cn.fw.valhalla.sdk.enums.CustomerFollowTypeEnum;
  import lombok.EqualsAndHashCode;
  import lombok.ToString;
  
03c1a9b3   张志伟   :sparkles:
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
  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;
  
03c1a9b3   张志伟   :sparkles:
53
      private Long groupId;
5b538595   张志伟   feature(*): 新增查询线...
54
55
56
57
      /**
       * 是否包含公共池
       */
      private Boolean includePublic;
03c1a9b3   张志伟   :sparkles:
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
  
      /**
       * 保有客跟进类型
       */
      private CustomerFollowTypeEnum followType;
      /**
       * 车架号
       */
      private String frameNo;
  
      /**
       * 门店id列表
       */
      private List<Long> shopList;
  
655c423d   张志伟   :sparkles:
73
74
75
76
77
      /**
       * 排除用户集
       */
      private List<Long> excludeCustomerIds;
  
03c1a9b3   张志伟   :sparkles:
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
      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;
      }
  
1ca0a771   张志伟   新增查询档案数量接口
94
95
96
97
      public void setType(Integer type) {
          this.followType = CustomerFollowTypeEnum.ofValue(type);
      }
  
03c1a9b3   张志伟   :sparkles:
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
      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;
      }
655c423d   张志伟   :sparkles:
161
162
163
164
165
166
167
168
  
      public List<Long> getExcludeCustomerIds() {
          return excludeCustomerIds;
      }
  
      public void setExcludeCustomerIds(List<Long> excludeCustomerIds) {
          this.excludeCustomerIds = excludeCustomerIds;
      }
5b538595   张志伟   feature(*): 新增查询线...
169
170
171
172
173
174
175
176
  
      public boolean getIncludePublic() {
          return includePublic;
      }
  
      public void setIncludePublic(final Boolean includePublic) {
          this.includePublic = includePublic;
      }
03c1a9b3   张志伟   :sparkles:
177
  }