Constants.java
20 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
package cn.com.glsx.entmicro.constants;
import org.apache.curator.shaded.com.google.common.collect.Lists;
import java.util.List;
/**
* @author zhouhaibao
* @version 1.0
* @description: 静态配置信息
* @date 2021/9/15 15:53
*/
public class Constants {
/**
* 碰撞-经纬度长度限制
*/
public static final int MAX_LONGITUDE_LENGTH = 16;
/**
* gps-设备轨迹请求方法
*/
public final static String GPS_RECORDES = "glsx.accounts.biz.location.gps.records";
/**
* 员工创建事件
*/
public static final String CREATE_USER = "create_user";
/**
* 员工编辑事件
*/
public static final String UPDATE_USER = "update_user";
/**
* 员工删除事件
*/
public static final String DELETE_USER = "delete_user";
/**
* 部门创建事件
*/
public static final String CREATE_PARTY = "create_party";
/**
* 部门编辑事件
*/
public static final String UPDATE_PARTY = "update_party";
/**
* 部门删除事件
*/
public static final String DELETE_PARTY = "delete_party";
/**
* 添加企业客户事件
*/
public static final String ADD_EXTERNAL_CONTACT = "add_external_contact";
/**
* 编辑企业客户事件
*/
public static final String EDIT_EXTERNAL_CONTACT = "edit_external_contact";
/**
* 外部联系人免验证添加成员事件
*/
public static final String ADD_HALF_EXTERNAL_CONTACT = "add_half_external_contact";
/**
* 删除企业客户事件
*/
public static final String DEL_EXTERNAL_CONTACT = "del_external_contact";
/**
* 删除跟进成员事件
*/
public static final String DEL_FOLLOW_USER = "del_follow_user";
/**
* 客户接替失败事件
*/
public static final String TRANSFER_FAIL = "transfer_fail";
/**
* 客户群创建事件
*/
public static final String CREATE_GROUP = "create";
/**
* 客户群更新事件
*/
public static final String UPDATE_GROUP = "update";
/**
* 客户群解散事件
*/
public static final String DISMISS_GROUP = "dismiss";
/**
* 企业标签创建事件
*/
public static final String CREATE_TAG = "create";
/**
* 企业标签新增事件
*/
public static final String UPDATE_TAG = "update";
/**
* 企业标签删除事件
*/
public static final String DELETE_TAG = "delete";
/**
* 数据标记 删除
*/
public static final byte DEL_FLAG = -1;
/**
* 数据标记 正常
*/
public static final byte NORMAL_FLAG = 0;
/**
* 数据标记 其他
*/
public static final byte OTHER_FLAG = 2;
/**
* 跟进员工最大数量 30
*/
public static final Integer MAX_NUM_FOLLOWER_TYPE = 30;
/**
* 未加企微客户 (客户概览标签)
*/
public static final String ENTMICRO_NOT_ADD = "未加企微客户";
/**
* 已加企微客户(客户概览标签)
*/
public static final String ENTMICRO_ADD = "已加企微客户";
/**
* 新车客户(客户概览标签)
*/
public static final String NEW_CAR = "新车客户";
/**
* 车险待续保客户(客户概览标签)
*/
public static final String NEED_RENEWAL = "车险待续保客户";
/**
* 新车待首保客户(客户概览标签)
*/
public static final String BURSEHOLDER = "新车待首保客户";
/**
* 沉默客户(客户概览标签)
*/
public static final String SILENCE = "沉默客户";
/**
* 潜在意向客户(客户概览标签)
*/
public static final String PURPOSE = "潜在意向客户";
/**
* 购买存档客户(客户概览标签)
*/
public static final String PURCHASE = "基盘客户";
/**
* 外部联系人权限 是
*/
public static final byte IS_ADD_OUTSIDER_FLAG = 0;
/**
* 外部联系人权限 否
*/
public static final byte NO_ADD_OUTSIDER_FLAG = 1;
/**
* 门店版
*/
public static final int STORE_MODEL = 2;
/**
* 公共跟进类型 是
*/
public static final byte IS_COMMON_TYPE = 1;
/**
* 公共跟进类型 否
*/
public static final byte NO_COMMON_TYPE = 0;
/**
* 企微魔方
*/
public static final int ENTMICRO_MAGIC_CUBE = 101;
/**
* 嘀加
*/
public static final int DI_JIA = 102;
/**
* 环比 不变
*/
public static final int IS_STAY = 0;
/**
* 环比 上升
*/
public static final int IS_UP = 1;
/**
* 下降
*/
public static final int IS_DOWN = 2;
/**
* 群发类型 1客户
*/
public static final byte MASS_TYPE_CUSTOMER = 1;
/**
* 群发类型 2客户群
*/
public static final int MASS_TYPE_GROUP = 2;
/**
* 群发选择类型 1全部客户 2筛选客户 3人群筛选 4一键营销
*/
public static final byte MASS_SELECT_ALL = 1;
/**
* 群发选择类型 2筛选客户
*/
public static final int MASS_SELECT_CONDITION = 2;
/**
* 群发选择类型 3人群筛选
*/
public static final int MASS_CROWD_CONDITION = 3;
/**
* 群发选择类型 4一键营销
*/
public static final int MASS_ONECLICK_CONDITION = 4;
/**
* 群发发送类型 1立即发送
*/
public static final byte MASS_SEND_NOW = 1;
/**
* 群发发送类型 2定时发送
*/
public static final int MASS_SEND_TIME = 2;
/**
* 群发任务类型 single,表示发送给客户
*/
public static final String CHAT_TYPE_SINGLE = "single";
/**
* 群发任务类型 group表示发送给客户群
*/
public static final String CHAT_TYPE_GROUP = "group";
/**
* 企微群发成功返回标识
*/
public static final int CHAT_MASS_SUCCESS = 0;
/**
* 客户群|客户群发任务名称前缀
*/
public static final String MASS_TASK_PREFIX = "mass_";
/**
* 企微高级api消息群发任务名称前缀
*/
public static final String BATCH_MSG_TASK_PREFIX = "batch_msg_";
/**
* 企微高级api朋友圈群发任务名称前缀
*/
public static final String BATCH_MOMENT_TASK_PREFIX = "batch_moment_";
/**
* 客户群|客户群发任务来源
*/
public static final String MASS_TASK_SOURCE = "ENT_MICRO";
/**
* 企微高级api消息群发任务来源
*/
public static final String BATCH_MSG_TASK_SOURCE = "batch_msg";
/**
* 企微高级api朋友圈群发任务来源
*/
public static final String BATCH_MOMENT_TASK_SOURCE = "batch_moment";
/**
* 智能营销发任务来源
*/
public static final String DRAC_TASK_SOURCE = "DRAC_MICRO";
/**
* 智能营销发任务来源
*/
public static final String DRAC_TASK_PREFIX = "drac_";
/**
* 智能营销发任务topic
*/
public static final String DRAC_TASK_TOPIC = "drac_topic";
/**
* 智能营销发任务来源
*/
public static final String DRAC_WORK_PREFIX = "drac_work_";
/**
* 智能营销发任务来源
*/
public static final String DRAC_MESSAGE_TASK_PREFIX = "message_";
/**
* 智能营销发任务topic
*/
public static final String DRAC_MESSAGE_TASK_TOPIC = "message_topic";
/**
* 智能营销渠道标识前缀
*/
public static final String DRAC_STATE = "DARC-";
/**
* 24小时
*/
public static final long REMIND_TIME_LIMIT = 24 * 60 * 60 * 1000;
/**
* 渠道活码
*/
public static final int ACTIVE_CODE = 4;
/**
* 任务状态
*/
public static final int WORK_STATUS_WAIT = 1;
/**
* 自动添加好友:0 否
*/
public static final int NO_AUTO_ADD = 0;
/**
* 自动添加好友:1 是
*/
public static final int IS_AUTO_ADD = 1;
public static class RemindPropertyKey {
/**
* 群发 提醒模板
*/
public static final String REMIND_MSG = "mass.remind.msg";
}
/**
* 智能营销状态
*/
public static class ImStatus {
/**
* 待发送
*/
public static final Integer IM_WAIT_SEND = 1;
/**
* 发送中
*/
public static final Integer IM_SENDING = 2;
/**
* 已完成
*/
public static final Integer IM_PERFECT = 3;
}
/**
* 智能营销状态
*/
public static class TimeType {
/**
* 昨日
*/
public static final int TIME_YES = 1;
/**
* 近一周
*/
public static final int TIME_LASE_WEEK = 2;
/**
* 近两周
*/
public static final int TIME_LASE_TWOWEEK = 3;
/**
* 近一个月
*/
public static final int TIME_LASE_MONTH = 4;
}
/**
* 智能营销状态
*/
public static class CustomerType {
/**
* 未添加企微客户
*/
public static final int NO_ADD_ENTMOCRO = 1;
/**
* 待完善信息客户
*/
public static final int NO_PHONE = 2;
/**
* 待续保的客户
*/
public static final int WAIT_RENEWAL = 3;
/**
* 待定保的客户
*/
public static final int WAIT_REGULAR_MAINTAIN = 4;
}
/**
* 客户群发 - 提醒状态
*/
public static class RemindStatus {
/**
* 未提醒 [byte]
*/
public static final byte UN_REMIND = 0;
/**
* 已提醒 [byte]
*/
public static final byte REMIND = 1;
/**
* 未提醒 [int]
*/
public static final int UN_REMIND_I = 0;
/**
* 已提醒 [int]
*/
public static final int REMIND_I = 1;
}
/**
* 获取群发成员发送任务列表返回的员工发送状态
*/
public static class MASS_STAFF_STATUS_RESP {
/**
* 未发送
*/
public static final int UNSEND = 0;
/**
* 已发送
*/
public static final int SENDED = 2;
}
/**
* 企业客户群发员工信息表状态
*/
public static class MASS_DETAIL_STAFF_STATUS {
/**
* 未发送
*/
public static final int UNSEND = 0;
/**
* 已发送
*/
public static final int SENDED = 1;
/**
* 发送失败
*/
public static final int SEND_ERROR = 2;
}
/**
* 群发助手-客户群-表状态
* 发送状态:0-未发送 1-已发送 2-因客户不是好友导致发送失败 3-因客户已经收到其他群发消息导致发送失败
*/
public static class MASS_CHAT_DETAIL_STATUS {
/**
* 未发送
*/
public static final int UNSEND = 0;
/**
* 已发送
*/
public static final int SENDED = 1;
/**
* 因客户不是好友导致发送失败
*/
public static final int SEND_ERROR = 2;
/**
* 因客户已经收到其他群发消息导致发送失败
*/
public static final int SEND_ERROR2 = 2;
}
/**
* 企业客户群发客户信息表状态
*/
public static class MASS_DETAIL_CUSTOMER_STATUS {
/**
* 未发送
*/
public static final int UNSEND = 0;
/**
* 已发送
*/
public static final int SENDED = 1;
/**
* 因客户不是好友导致发送失败
*/
public static final int SEND_ERROR_FOR_UNFRIEND = 2;
/**
* 因客户已经收到其他群发消息导致发送失败
*/
public static final int SEND_ERROR_FOR_OTHER_MSG = 3;
}
/**
* redis缓存key
*/
public static class RedisKey {
public static final String MassStaffRemindKey = "mass.staff.remind.lock.key.";
}
/**
* 客户群
*/
public static class CUSTOMER_BASE_CONSTANTS {
/**
* 群成员类型 员工
*/
public static final int MEMBER_STAFF = 1;
/**
* 群成员类型 客户
*/
public static final int MEMBER_CUSTOMER = 2;
/**
* 创建方式 手动拉群
*/
public static final int SCRM_CUSTOMER_BASE = 1;
/**
* 创建方式 一客一群
*/
public static final int SCRM_GROUP_ONE = 2;
/**
* 全部客户
*/
public static final String BASE_CUSTOMER = "全部客户";
/**
* 潜在客户
*/
public static final String BASE_POTENTIAL_CUSTOMER = "潜在客户";
/**
* 退群客户
*/
public static final String BASE_QUIT_CUSTOMER = "退群客户";
/**
* 跟进员工
*/
public static final String BASE_STAFF = "跟进员工";
/**
* 入群方式
* 1 - 直接邀请入群
* 2 - 通过邀请链接入群
* 3 - 通过扫描群二维码入群
*/
public static final int JOIN_SCENE_INVITATION = 1;
public static final int JOIN_SCENE_LINK = 2;
public static final int JOIN_SCENE_QRCODE = 3;
public static final String JOIN_BY_INVITATION = "直接邀请入群";
public static final String JOIN_BY_LINK = "通过邀请链接入群";
public static final String JOIN_BY_QRCODE = "通过扫描群二维码入群";
/**
* 我的客户标识 是
*/
public static final int IS_MY_CUSTOMER = 0;
/**
* 我的客户标识 否
*/
public static final int IS_NOT_MY_CUSTOMER = -1;
/**
* 群主标识 是
*/
public static final int IS_LORD = 0;
/**
* 是否加企微 是
*/
public static final int IS_ADD_CONTACT = 1;
/**
* 群系统标签(同步自客户)
*/
public static final List<String> CHAT_ALLOW_TAG_NAME = Lists.newArrayList("客户画像", "买车情况",
"消费力", "附赠产品", "流量来源", "品牌车型", "车架号", "车牌号", "客户类型", "商品类型");
}
/**
* 一客一群群名称规则
* 群聊命名规则0-自定义群名,1-车系+客户昵称+自定义群名,2-车系+车牌号+自定义群名
*/
public static class OneGroupName {
/**
* 自定义群名
*/
public static final int ZERO = 0;
/**
* 车系+客户昵称+自定义群名
*/
public static final int ONE = 1;
/**
* 车系+车牌号+自定义群名
*/
public static final int TWO = 2;
}
/**
* 用户类型 微信
*/
public static final int USER_TYPE_WECHAT = 1;
/**
* 用户类型 企微
*/
public static final int USER_TYPE_ENTERPRISE = 2;
public static final String USER_TYPE_WECHAT_STRING = "微信";
public static final String USER_TYPE_ENTERPRISE_STRING = "企业微信";
public static String SEX_MAN = "男";
public static String SEX_WOMEN = "女";
public static String SEX_UNKNOWN = "未知";
/**
* 客户类型 男
*/
public static final int CUSTOMER_SEX_MAN = 1;
/**
* 客户类型 女
*/
public static final int CUSTOMER_SEX_WOMEN = 2;
/**
* 客户类型 未知
*/
public static final int CUSTOMER_SEX_UNKNOWN = 0;
/**
* 魔方导入默认模板merchantId
*/
public static final Integer MAGIC_DEFAULT_TEMPLATE_MERCHANTID = 0;
/**
* 魔方导入数据异常说明
*/
public static final String MAGIC_ERROR_MSG_FIELD = "数据异常说明";
/**
* 外呼申请已通过
*/
public static final int PHONE_STATUS_PASSED = 4;
/**
* 已发送好友申请
*/
public static final int PHONE_STATUS_SEND = 3;
/**
* 待发送好友申请
*/
public static final int PHONE_STATUS_SENDING = 2;
/**
* 用户不存在
*/
public static final int PHONE_STATUS_NONE_USER = 1;
/**
* 待执行
*/
public static final int NOT_EXECUTE = 1;
/**
* 执行中
*/
public static final int EXECUTING = 2;
/**
* 已暂停
*/
public static final int STOP = 3;
/**
* 已完成
*/
public static final int EXECUTED = 4;
/**
* 智能营销类型
*/
public static class DracImType {
/**
* 批量添加好友
*/
public static final int BATCH_ADD_FRIEND = 1;
/**
* 完善资料
*/
public static final int ADDITIONAL_INFORMATION = 2;
/**
* 未添加企微
*/
public static final int NOTADDENTMICRO = 3;
}
/**
* 轻改配置
*/
public static class Operation {
/**
* 是否有欢迎语 是
*/
public static final int IS_WELCOME_CONFIG = 0;
/**
* 轻改配置渠道
*/
public static String OPERATION_STATE = "OP";
}
/**
* 道路救援卡
*/
public static class RescueCardConfig {
public static final int IS_SHOW = 0;
public static final int NO_SHOW = -1;
}
/**
* 外呼回调事件
*/
public static class OutBoundCallBack {
/**
* 任务单通电话回调
*/
public static final int OutBoundCallBack_Phone_TASK = 0;
/**
* 任务状态变更回调
*/
public static final int OutBoundCallBack_TASK_STATUS = 2;
}
/**
* 登录状态
*/
public static class CloudControlLogin {
/**
* 登录
*/
public static final int CLOUD_CONTROL_LOGIN = 1;
/**
* 登出
*/
public static final int CLOUD_CONTROL_LOGINOUT = 0;
}
/**
* 企微高级云控群发
*/
public static class CloudBatchMessaging {
// 标签客户类型查询
public static final Integer CUSTOMER_TYPE_BY_LABEL = 1;
// 人群客户类型查询
public static final Integer CUSTOMER_TYPE_BY_CROWD = 2;
// 客户id类型查询
public static final Integer CUSTOMER_TYPE_BY_CUSTOMER_ID = 3;
// 客户id类型查询
public static final Integer CUSTOMER_TYPE_BY_GROUP = 4;
// 群发状态 - 发送中
public static final Integer MSG_TYPE_SENDING = 0;
// 群发状态 - 发送成功
public static final Integer MSG_TYPE_SEND_SUCCESS = 1;
// 群发状态 - 发送失败
public static final Integer MSG_TYPE_SEND_FAIL = 2;
// 群发状态 - 待发送
public static final Integer MSG_TYPE_SEND_WAIT = 3;
// 客户发送状态 - 发送失败
public static final Integer SEND_STATE_BY_FAIL = 0;
// 客户发送状态 - 发送成功
public static final Integer SEND_STATE_BY_SUCCESS = 1;
// 企微高级群发调用api发消息的请求串前缀
public static final String REQUEST_KEY_BATCH_MESSAGING = "BATCH_MESSAGING_";
// 企微高级群发结果返回成功状态码
public static final String RESPONSE_CODE_SUCCESS = "000000";
}
/**
* 智能营销状态
*/
public static class MessageImStatus {
/**
* 待发送
*/
public static final Integer IM_WAIT_SEND = 1;
/**
* 已完成
*/
public static final Integer IM_PERFECT = 2;
/**
* 已完成
*/
public static final Integer IM_DEL = 3;
}
/**
* 智能营销状态
*/
public static class AccessScrmFlag {
/**
* 未接入
*/
public static final Integer NOT_ACCESS_SCRM = 0;
}
}