fwq
2023-09-06 dce3020f21b869accff50da25b5955eca0883c2e
提交 | 用户 | age
fcb7aa 1 package com.hz.his.vo.bi.revenue;
C 2
3 import com.fasterxml.jackson.annotation.JsonFormat;
4 import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
5 import com.gitee.sunchenbin.mybatis.actable.annotation.Index;
6 import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
7 import lombok.Data;
8 import org.springframework.format.annotation.DateTimeFormat;
9
10 import java.math.BigDecimal;
11 import java.util.Date;
12
13 /**
14  *收入确认表查询
15  * @author CJH
16  */
17 @Data
18 public class RevenueQuery{
19
20     /**其他查询*/
21     private String KeyWord;
22     /**用户CIQ*/
23     private String CIQ;
24     /**是否划扣*/
25     private Integer isDeduction;
26     /**分类名称(同时搜索一级二级)*/
27     private String orderLevelTypeName;
28     /**关联编号*/
29     private String associationNo;
30     /**下单日期*/
31     private Date startOrderTime;
32     /**下单日期*/
33     private Date endOrderTime;
34     /**执行日期*/
35     private Date startDeductionTime;
36     /**执行日期*/
37     private Date endDeductionTime;
38     /**创建日期*/
39     private Date startCreateTime;
40     /**创建日期*/
41     private Date endCreateTime;
dce302 42     /**是否过滤测试账号*/
F 43     private Integer isFilterTestAccount;
fcb7aa 44
C 45     /**请求操作人*/
46     private String operatorId;
47     /**请求操作人*/
48     private String operatorName;
49
50     @Column(comment = "来源类型", length = 2, type = MySqlTypeConstant.INT, isNull = false)
51     private Integer sourceType;
52     @Column(comment = "来源类型名称", type = MySqlTypeConstant.VARCHAR, length = 10)
53     private String sourceTypeName;
54     @Index
55     @Column(comment = "来源标识(根据来源类型存储标识)", type = MySqlTypeConstant.VARCHAR, length = 32, isNull = false)
56     private String sourceId;
57     @Column(comment = "来源编号(根据来源类型存储编号(例:单号、划扣号)", type = MySqlTypeConstant.VARCHAR, length = 64)
58     private String sourceNo;
59     @Index
60     @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
61     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
62     @Column(comment = "来源业绩时间", type = MySqlTypeConstant.DATETIME, isNull = false)
63     private Date sourceTime;
64     @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
65     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
66     @Column(comment = "来源创建时间", type = MySqlTypeConstant.DATETIME, isNull = false)
67     private Date sourceCreateTime;
68
69     @Column(comment = "来源总标识(根据来源类型存储标识)", type = MySqlTypeConstant.VARCHAR, length = 32)
70     private String sourceGeneralId;
71     @Column(comment = "来源总编号(根据来源类型存储编号(例:单号、划扣号)", type = MySqlTypeConstant.VARCHAR, length = 64)
72     private String sourceGeneralNo;
73
74     @Column(comment = "营销分类(OrderItemConstants)", length = 64, type = MySqlTypeConstant.VARCHAR, isNull = false)
75     private String marketingType;
76     @Column(comment = "营销分类名称", length = 64, type = MySqlTypeConstant.VARCHAR)
77     private String marketingTypeName;
78
79     @Column(comment = "营销名称", type = MySqlTypeConstant.VARCHAR,length = 128)
80     private String marketingName;
81
82     @Column(comment = "基础分类(OrderItemConstants)", length = 64, type = MySqlTypeConstant.VARCHAR, isNull = false)
83     private String basicType;
84     @Column(comment = "基础分类名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
85     private String basicTypeName;
86
87     @Column(comment = "一级分类(OrderItemConstants)", length = 64, type = MySqlTypeConstant.VARCHAR)
88     private String firstLevelType;
89     @Column(comment = "一级分类名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
90     private String firstLevelTypeName;
91     @Column(comment = "二级分类(OrderItemConstants)", length = 64, type = MySqlTypeConstant.VARCHAR)
92     private String secondLevelType;
93     @Column(comment = "二级分类名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
94     private String secondLevelTypeName;
95     @Column(comment = "分类父类包括自己JSON,格式:[{\"id\":\"渠道标识\",\"name\":\"渠道名称\",\"parentId\":\"父类标识\"}]",  type = MySqlTypeConstant.TEXT,isNull = false)
96     private String classifyJson = "[]";
97
98     @Index
99     @Column(comment = "项目id/商品id(公用标识)", length = 64, type = MySqlTypeConstant.VARCHAR)
100     private String commonId;
101     @Column(comment = "项目编号/商品编码", length = 64,  type = MySqlTypeConstant.VARCHAR)
102     private String commonNo;
103     @Column(comment = "项目名称/商品名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
104     private String commonName;
105
106     @Column(comment = "规格",  length = 128, type = MySqlTypeConstant.VARCHAR)
107     private String specification;
108     @Column(comment = "资质", length = 128,  type = MySqlTypeConstant.VARCHAR)
109     private String qualification;
110     @Column(comment = "项目单位", length = 128, type = MySqlTypeConstant.VARCHAR)
111     private String unit;
112
113     @Column(comment = "科室编号", length = 64, type = MySqlTypeConstant.VARCHAR)
114     private String departmentCode;
115     @Column(comment = "科室名称",  length = 64, type = MySqlTypeConstant.VARCHAR)
116     private String departmentName;
117
118     @Column(comment = "价格标签", length = 128, type = MySqlTypeConstant.VARCHAR)
119     private String priceTag;
120
121     @Index
122     @Column(comment = "收费订单id", length = 64, type = MySqlTypeConstant.VARCHAR)
123     private String payOrderId;
124     @Column(comment = "收费单号", length = 64,  type = MySqlTypeConstant.VARCHAR)
125     private String payOrderNo;
126
127     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
128     @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
129     @Column(comment="结算时间(收费日期)",type = MySqlTypeConstant.DATETIME)
130     private Date orderTime;
131     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
132     @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
133     @Column(comment="执行日期",type = MySqlTypeConstant.DATETIME)
134     private Date deductionTime;
135
136     @Column(comment = "业务类型(PerformanceInfoEnum)",  type = MySqlTypeConstant.VARCHAR, length = 64)
137     private String businessType;
138     @Column(comment = "业务类型名称", type = MySqlTypeConstant.VARCHAR, length = 64)
139     private String businessTypeName;
140
141     @Index
142     @Column(comment = "用户id", length = 64, type = MySqlTypeConstant.VARCHAR, isNull = false)
143     private String userId;
144     @Column(comment = "会员号(用户编号)", length = 64, type = MySqlTypeConstant.VARCHAR)
145     private String memberNO;
146     @Column(comment = "CIQ", length = 64, type = MySqlTypeConstant.VARCHAR)
147     private String memberCIQ;
148     @Column(comment = "病例号", length = 64, type = MySqlTypeConstant.VARCHAR)
149     private String memberCaseNo;
150     @Column(comment = "客户类别", length = 64, type = MySqlTypeConstant.VARCHAR)
151     private String userClass;
152     @Column(comment="是否首次执行", length = 1, type = MySqlTypeConstant.INT)
153     private Integer isFirstDeduction;
154     @Column(comment="会员等级", length = 64, type = MySqlTypeConstant.VARCHAR)
155     private String userLevel;
156     @Column(comment="用户名称", type = MySqlTypeConstant.VARCHAR)
157     private String userName;
158     @Column(comment="共享客户", length = 1, type = MySqlTypeConstant.TINYINT)
159     private Integer shareCustomer;
160     @Column(comment = "客户类型", length = 64, type = MySqlTypeConstant.VARCHAR)
161     private String userType;
162
163     @Column(comment = "登记人类型", length = 1, type = MySqlTypeConstant.TINYINT)
164     private Integer registrantType;
165     @Index
166     @Column(comment = "登记人Id", length = 64, type = MySqlTypeConstant.VARCHAR)
167     private String registrantId;
168     @Column(comment = "登记人名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
169     private String registrantName;
170
171     @Index
172     @Column(comment = "执行医生Id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
173     private String deductionDoctorId;
174     @Column(comment = "执行医生名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
175     private String deductionDoctorName;
176
177     @Index
178     @Column(comment = "助理医生Id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
179     private String assistantDoctorId;
180     @Column(comment = "助理医生名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
181     private String assistantDoctorName;
182
183     @Index
184     @Column(comment = "美容师Id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
185     private String beauticianId;
186     @Column(comment = "美容师名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
187     private String beauticianName;
188
189     @Index
190     @Column(comment = "订单id", length = 64, type = MySqlTypeConstant.VARCHAR)
191     private String orderId;
192     @Column(comment = "订单编号", length = 64,  type = MySqlTypeConstant.VARCHAR)
193     private String orderNo;
194
195     @Index
196     @Column(comment = "订单条码id", length = 64, type = MySqlTypeConstant.VARCHAR)
197     private String orderItemId;
198     @Column(comment = "订单条码编号", length = 64,  type = MySqlTypeConstant.VARCHAR)
199     private String orderItemNo;
200
201     @Column(comment = "开单人类型", length = 1, type = MySqlTypeConstant.TINYINT)
202     private Integer orderOpType;
203     @Index
204     @Column(comment = "开单人Id", length = 64, type = MySqlTypeConstant.VARCHAR)
205     private String orderOpId;
206     @Column(comment = "开单人名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
207     private String orderOpName;
208
209
210     @Column(comment = "开发人类型", length = 1, type = MySqlTypeConstant.TINYINT)
211     private Integer developOpType;
212     @Column(comment = "开发人Id", type = MySqlTypeConstant.VARCHAR)
213     private String developOpId;
214     @Column(comment = "开发人名称", type = MySqlTypeConstant.VARCHAR)
215     private String developOpName;
216
217     @Column(comment = "开发人门店标识", type = MySqlTypeConstant.VARCHAR,length = 64)
218     private String developShopId;
219     @Column(comment = "开发人门店名称", type = MySqlTypeConstant.VARCHAR,length = 64)
220     private String developShopName;
221
222     @Column(comment = "所属咨询师类型", length = 1, type = MySqlTypeConstant.TINYINT)
223     private Integer belongConsultantType;
224     @Index
225     @Column(comment = "用户所属咨询师id(Employee id) 用户划扣时的所属咨询师", length = 64, type = MySqlTypeConstant.VARCHAR)
226     private String belongConsultantId;
227     @Column(comment = "用户所属咨询师名称", length = 64, type = MySqlTypeConstant.VARCHAR)
228     private String belongConsultantName;
229
230     @Column(comment = "用户所属咨询师所属门店信息", type = MySqlTypeConstant.LONGTEXT)
231     private String belongConsultantShopInfo;
232
233     @Column(comment = "开单咨询师类型", length = 1, type = MySqlTypeConstant.TINYINT)
234     private Integer orderConsultantType;
235     @Index
236     @Column(comment = "开单咨询师id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
237     private String orderConsultantId;
238     @Column(comment = "开单咨询师名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
239     private String orderConsultantName;
240
241     @Column(comment = "收银咨询师类型", length = 1, type = MySqlTypeConstant.TINYINT)
242     private Integer cashierConsultantType;
243     @Index
244     @Column(comment = "收银咨询师id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
245     private String cashierConsultantId;
246     @Column(comment = "收银咨询师名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
247     private String cashierConsultantName;
248
249     @Column(comment = "接诊咨询师名称类型", length = 1, type = MySqlTypeConstant.TINYINT)
250     private Integer receptionConsultantType;
251     @Index
252     @Column(comment = "接诊咨询师id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
253     private String receptionConsultantId;
254     @Column(comment = "接诊咨询师名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
255     private String receptionConsultantName;
256
257     @Column(comment = "执行咨询师类型", length = 1, type = MySqlTypeConstant.TINYINT)
258     private Integer deductionConsultantType;
259     @Index
260     @Column(comment = "执行咨询师id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
261     private String deductionConsultantId;
262     @Column(comment = "执行咨询师名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
263     private String deductionConsultantName;
264
265     @Column(comment = "收入计入", length = 64, type = MySqlTypeConstant.VARCHAR)
266     private String revenueRecordedType;
267     @Column(comment = "收入计入名称", length = 64, type = MySqlTypeConstant.VARCHAR)
268     private String revenueRecordedName;
269
270     @Column(comment = "收入主体", length = 64, type = MySqlTypeConstant.VARCHAR)
271     private String revenueSubjectType;
272     @Column(comment = "收入主体名称", length = 64, type = MySqlTypeConstant.VARCHAR)
273     private String revenueSubjectName;
274
275     @Column(comment = "原单价", length = 28, type = MySqlTypeConstant.DECIMAL)
276     private BigDecimal originalPrice = BigDecimal.ZERO;
277     @Column(comment = "数量", type = MySqlTypeConstant.INT,length = 11)
278     private Integer quantity;
279     @Column(comment = "未执行次数", type = MySqlTypeConstant.INT)
280     private Integer notUsedNum;
281
282     @Column(comment = "折扣", length = 28, type = MySqlTypeConstant.DECIMAL)
283     private BigDecimal discount = BigDecimal.ZERO;
284     @Column(comment = "折后金额", length = 28, type = MySqlTypeConstant.DECIMAL)
285     private BigDecimal discountAmount = BigDecimal.ZERO;
286     @Column(comment = "收银金额", length = 28, type = MySqlTypeConstant.DECIMAL)
287     private BigDecimal cashierAmount = BigDecimal.ZERO;
288
289     @Column(comment="是否欠费", length = 1, type = MySqlTypeConstant.INT)
290     private Integer isArrears;
291     @Column(comment = "预定金", length = 28, type = MySqlTypeConstant.DECIMAL)
292     private BigDecimal deposit = BigDecimal.ZERO;
293     @Column(comment = "储值金", length = 28, type = MySqlTypeConstant.DECIMAL)
294     private BigDecimal storedValueFund = BigDecimal.ZERO;
295     @Column(comment = "增值金", length = 28, type = MySqlTypeConstant.DECIMAL)
296     private BigDecimal valueAddedFund = BigDecimal.ZERO;
297     @Column(comment = "积分", length = 28, type = MySqlTypeConstant.DECIMAL)
298     private BigDecimal integral = BigDecimal.ZERO;
299     @Column(comment = "积分金额", length = 28, type = MySqlTypeConstant.DECIMAL)
300     private BigDecimal integralAmount = BigDecimal.ZERO;
301     @Column(comment = "虚拟金额", length = 28, type = MySqlTypeConstant.DECIMAL)
302     private BigDecimal virtualAmount = BigDecimal.ZERO;
303
304     @Column(comment = "业绩总额", length = 28, type = MySqlTypeConstant.DECIMAL)
305     private BigDecimal performanceTotal = BigDecimal.ZERO;
306     @Column(comment = "业绩不含税", length = 28, type = MySqlTypeConstant.DECIMAL)
307     private BigDecimal performanceNotHasTax;
308     @Column(comment = "税额", length = 28, type = MySqlTypeConstant.DECIMAL)
309     private BigDecimal taxAmount;
310
311     @Column(comment = "标准耗材成本", length = 28, type = MySqlTypeConstant.DECIMAL)
312     private BigDecimal standardConsumablesCost = BigDecimal.ZERO;
313     @Column(comment = "实际耗材成本", length = 28, type = MySqlTypeConstant.DECIMAL)
314     private BigDecimal actualConsumablesCost = BigDecimal.ZERO;
315
316     @Column(comment = "渠道分类标识(ChannelsType)(必填,代码判断)", length = 64, type = MySqlTypeConstant.VARCHAR)
317     private String channelsTypeId;
318     @Column(comment = "渠道分类名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
319     private String channelsTypeName;
320     @Column(comment = "渠道标识", length = 64, type = MySqlTypeConstant.VARCHAR)
321     private String channelId;
322     @Column(comment = "渠道名称",  length = 64, type = MySqlTypeConstant.VARCHAR)
323     private String channelName;
324
325     @Column(comment = "渠道联系人类型", length = 4, type = MySqlTypeConstant.TINYINT)
326     private Integer channelContactType;
327     @Index
328     @Column(comment = "渠道联系人Id", length = 64, type = MySqlTypeConstant.VARCHAR)
329     private String channelContactId;
330     @Column(comment = "渠道联系人名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
331     private String channelContactName;
332
333     @Column(comment = "渠道合作人类型", length = 1, type = MySqlTypeConstant.TINYINT)
334     private Integer channelPartnerType;
335     @Index
336     @Column(comment = "渠道合作人Id", length = 64, type = MySqlTypeConstant.VARCHAR)
337     private String channelPartnerId;
338     @Column(comment = "渠道合作人名称", length = 64, type = MySqlTypeConstant.VARCHAR)
339     private String channelPartnerName;
340
341     @Column(comment = "诊所内部联络人类型", length = 1, type = MySqlTypeConstant.TINYINT)
342     private Integer internalContactType;
343     @Index
344     @Column(comment = "诊所内部联络人Id", length = 64, type = MySqlTypeConstant.VARCHAR)
345     private String internalContactId;
346     @Column(comment = "诊所内部联络人名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
347     private String internalContactName;
348
349     @Column(comment = "电网咨询师id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
350     private String tmkServiceId;
351     @Column(comment = "电网咨询师名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
352     private String tmkServiceName;
353
354     @Column(comment = "客服id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
355     private String chatCorpUserId;
356     @Column(comment = "客服名称", length = 64, type = MySqlTypeConstant.VARCHAR)
357     private String chatCorpUserName;
358
359     @Column(comment = "护士id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
360     private String nurseCorpUserId;
361     @Column(comment = "护士名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
362     private String nurseCorpUserName;
363
364     @Column(comment = "洗手护士id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
365     private String handWashNurseId;
366     @Column(comment = "洗手护士名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
367     private String handWashNurseName;
368
369     @Column(comment = "巡回护士id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
370     private String circuitingNurseId;
371     @Column(comment = "巡回护士名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
372     private String circuitingNurseName;
373
374     @Column(comment = "配台护士id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
375     private String tableNurseId;
376     @Column(comment = "配台护士名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
377     private String tableNurseName;
378
379     @Column(comment = "麻醉师id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
380     private String anesthesiologistId;
381     @Column(comment = "麻醉师名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
382     private String anesthesiologistName;
383
384     @Column(comment = "疗程总额", length = 28, type = MySqlTypeConstant.DECIMAL)
385     private BigDecimal treatmentTotal;
386
387     @Column(comment = "TMK登记人id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
388     private String tmkRegistrantId;
389     @Column(comment = "TMK登记人名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
390     private String tmkRegistrantName;
391
392     @Column(comment = "收费员id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
393     private String chargeId;
394     @Column(comment = "收费员名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
395     private String chargeName;
396
397     @Column(comment = "服务门店id", length = 64, type = MySqlTypeConstant.VARCHAR)
398     private String serviceShopId;
399     @Column(comment = "服务门店名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
400     private String serviceShopName;
401
402     @Column(comment = "用户所属门店id", length = 64, type = MySqlTypeConstant.VARCHAR)
403     private String belongShopId;
404     @Column(comment = "用户所属门店名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
405     private String belongShopName;
406
407     @Column(comment = "下单门店id", length = 64, type = MySqlTypeConstant.VARCHAR)
408     private String orderShopId;
409     @Column(comment = "下单门店名称", length = 64, type = MySqlTypeConstant.VARCHAR)
410     private String orderShopName;
411
412     @Column(comment = "收银门店id", length = 64, type = MySqlTypeConstant.VARCHAR)
413     private String cashierShopId;
414     @Column(comment = "收银门店名称", length = 64, type = MySqlTypeConstant.VARCHAR)
415     private String cashierShopName;
416
417     @Column(comment = "收费备注", type = MySqlTypeConstant.TEXT)
418     private String chargeRemark;
419
420     @Column(comment = "营销标签", type = MySqlTypeConstant.TEXT)
421     private String marketingTag;
422
423     @Column(comment="是否转诊转疗", length = 1, type = MySqlTypeConstant.INT)
424     private Integer isTurn;
425     @Column(comment="是否可执行项目", length = 1, type = MySqlTypeConstant.INT)
426     private Integer isDeductionProject;
427     @Column(comment="是否疗程项目", length = 1, type = MySqlTypeConstant.INT)
428     private Integer isTreatmentProject;
429
430     @Column(comment = "购买数量", type = MySqlTypeConstant.INT,length = 11)
431     private Integer buyNum;
432     @Column(comment = "疗程次数", type = MySqlTypeConstant.INT,length = 11)
433     private Integer treatmentNum;
434     @Column(comment = "疗程总数", type = MySqlTypeConstant.INT,length = 11)
435     private Integer treatmentTotality;
436     @Column(comment = "疗程序号", type = MySqlTypeConstant.INT,length = 11)
437     private Integer treatmentNo;
438
439     @Column(comment = "划扣备注", type = MySqlTypeConstant.TEXT)
440     private String deductionRemark;
441     @Column(comment = "免单原因", type = MySqlTypeConstant.TEXT)
442     private String freeReason;
443
444     @Column(comment = "业绩类别(PerformanceInfoEnum)", type = MySqlTypeConstant.VARCHAR, isNull = false)
445     private String performanceCategory;
446     @Column(comment = "业绩类别名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
447     private String performanceCategoryName;
448
449     @Column(comment = "订单类型(OrderItemConstants)", length = 64, type = MySqlTypeConstant.VARCHAR)
450     private String orderType;
451     @Column(comment = "订单类型名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
452     private String orderTypeName;
453
454     @Column(comment = "订单分类(OrderItemConstants)", length = 64, type = MySqlTypeConstant.VARCHAR)
455     private int orderClassify;
456     @Column(comment = "订单类型名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
457     private String orderClassifyName;
458
459     @Column(comment = "客户成交标签", type = MySqlTypeConstant.TEXT)
460     private String customerTransactionTag;
461
462     @Column(comment = "订单渠道分类名称", length = 64, type = MySqlTypeConstant.VARCHAR)
463     private String orderChannelsTypeName;
464
465     @Column(comment = "订单一级分类(OrderItemConstants) 渠道为一级渠道id 会员填写空", type = MySqlTypeConstant.VARCHAR, length = 64)
466     private String orderFirstLevelType;
467     @Column(comment = "订单一级分类名称",  type = MySqlTypeConstant.VARCHAR, length = 64)
468     private String orderFirstLevelTypeName;
469     @Column(comment = "订单渠道的json,所有父类包括自己:[{\"id\":\"渠道标识\",\"parentId\":\"父类渠道标识\",\"name\":\"渠道名称\"}]", type = MySqlTypeConstant.TEXT)
470     private String orderChannelJson = "[]";
471     @Column(comment = "订单渠道一级编号", type = MySqlTypeConstant.VARCHAR, length = 32)
472     private String orderChannel1No;
473     @Column(comment = "订单渠道一级的分类标识", type = MySqlTypeConstant.VARCHAR, length = 32)
474     private String orderChannel1TypeId;
475     @Column(comment = "订单渠道一级的分类编号", type = MySqlTypeConstant.VARCHAR, length = 32)
476     private String orderChannel1TypeNo;
477     @Column(comment = "订单渠道一级的分类名称", type = MySqlTypeConstant.VARCHAR, length = 50)
478     private String orderChannel1TypeName;
479
480     @Column(comment = "订单二级分类(OrderItemConstants) 渠道为二级渠道id", type = MySqlTypeConstant.VARCHAR, length = 64)
481     private String orderSecondLevelType;
482     @Column(comment = "订单二级分类名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
483     private String orderSecondLevelTypeName;
484     @Column(comment = "订单渠道二级编号", type = MySqlTypeConstant.VARCHAR, length = 32)
485     private String orderChannel2No;
486     @Column(comment = "订单渠道二级的联系人名称", length = 50, type = MySqlTypeConstant.VARCHAR)
487     private String orderChannel2Contacts;
488     @Column(comment = "订单渠道二级的部门标识", type = MySqlTypeConstant.VARCHAR, length = 32)
489     private String orderChannel2Depart;
490     @Column(comment = "订单渠道二级的部门名称", type = MySqlTypeConstant.VARCHAR, length = 32)
491     private String orderChannel2DepartName;
492     @Column(comment = "订单渠道二级的分类标识", type = MySqlTypeConstant.VARCHAR, length = 32)
493     private String orderChannel2TypeId;
494     @Column(comment = "订单渠道二级的分类编号", type = MySqlTypeConstant.VARCHAR, length = 32)
495     private String orderChannel2TypeNo;
496     @Column(comment = "订单渠道二级的分类名称", type = MySqlTypeConstant.VARCHAR, length = 50)
497     private String orderChannel2TypeName;
498     @Column(comment = "订单渠道合作人Id", length = 64, type = MySqlTypeConstant.VARCHAR)
499     private String orderChannelPartnerId;
500     @Column(comment = "订单渠道合作人名称", length = 64, type = MySqlTypeConstant.VARCHAR)
501     private String orderChannelPartnerName;
502
503     @Column(comment = "客户推荐人分类标识",length = 32, type = MySqlTypeConstant.VARCHAR)
504     private String inviteeTypeId;
505     @Column(comment = "客户推荐人分类名称",length = 64, type = MySqlTypeConstant.VARCHAR)
506     private String inviteeTypeName;
507     @Column(comment = "客户推荐人标识",length = 32, type = MySqlTypeConstant.VARCHAR)
508     private String inviteeId;
509     @Column(comment = "客户推荐人编号",length = 64, type = MySqlTypeConstant.VARCHAR)
510     private String inviteeNo;
511     @Column(comment = "邀请人编号", type = MySqlTypeConstant.VARCHAR, length = 32)
512     private String inviteeCIQ;
513     @Column(comment = "客户推荐人名称",length = 64, type = MySqlTypeConstant.VARCHAR)
514     private String inviteeName;
515
516     @Column(comment = "订单推荐人类型", length = 32, type = MySqlTypeConstant.VARCHAR)
517     private String orderInviteeType;
518     @Column(comment = "订单推荐人名称",length = 32, type = MySqlTypeConstant.VARCHAR)
519     private String orderInviteeTypeName;
520     @Column(comment = "订单推荐人标识",length = 32, type = MySqlTypeConstant.VARCHAR)
521     private String orderInviteeId;
522     @Column(comment = "客户推荐人编号",length = 64, type = MySqlTypeConstant.VARCHAR)
523     private String orderInviteeNo;
524     @Column(comment = "邀请人编号", type = MySqlTypeConstant.VARCHAR, length = 32)
525     private String orderInviteeCIQ;
526     @Column(comment = "订单推荐人名称",length = 64, type = MySqlTypeConstant.VARCHAR)
527     private String orderInviteeName;
528     @Column(comment = "订单推荐人角色信息",length = 128, type = MySqlTypeConstant.VARCHAR)
529     private String orderInviteeRoleInfo;
530
531     @Index
532     @Column(comment = "会员主诊医生Id(Employee id)", length = 64, type = MySqlTypeConstant.VARCHAR)
533     private String attendingDoctorId;
534     @Column(comment = "会员主诊医生名称", length = 64,  type = MySqlTypeConstant.VARCHAR)
535     private String attendingDoctorName;
536
537     @Column(comment = "治疗单类型(OrderTotalConstants)", length = 2, type = MySqlTypeConstant.INT, isNull = false, defaultValue = "0")
538     private Integer treatOrderClassify;
539     @Column(comment = "治疗单类型(OrderTotalConstants)", length = 32, type = MySqlTypeConstant.VARCHAR)
540     private String treatOrderClassifyName;
541
542     @Column(comment = "优惠券发放人" ,type = MySqlTypeConstant.LONGTEXT)
543     private String couponIssuer;
544     @Column(comment = "优惠券发放人角色" ,type = MySqlTypeConstant.LONGTEXT)
545     private String couponIssuerRole;
546     @Column(comment = "优惠券名称" ,type = MySqlTypeConstant.LONGTEXT)
547     private String couponName;
548
549     @Column(comment = "主渠道" ,type = MySqlTypeConstant.LONGTEXT)
550     private String mainChannelName;
551     @Column(comment = "执行部位" ,type = MySqlTypeConstant.LONGTEXT)
552     private String deductionBodyPartInfo;
553
554     /**页数*/
555     private Integer pageNum;
556     /**条数*/
557     private Integer pageSize;
558
559     public Integer getPageNum() {
560         if(pageNum == null){
561             pageNum = 1;
562         }
563         return pageNum;
564     }
565
566     public void setPageNum(Integer pageNum) {
567         this.pageNum = pageNum;
568     }
569
570     public Integer getPageSize() {
571         if(pageSize == null || pageSize > 500){
572             pageSize = 20;
573         }
574         return pageSize;
575     }
576
577     public void setPageSize(Integer pageSize) {
578         this.pageSize = pageSize;
579     }
580 }