前言
1.中间跳过的名单拨打处理
2.统计批次进度问题
3.重呼数据未拨打问题(重启后拨打)
4.查看某个租户是否配置了重呼轮呼策略
5.批次数据号码处理(加前缀去掉前缀)
内容
1.中间跳过的名单拨打处理
先查看未拨打批次:
|
|
1.1 数据量小时候处理
1.查询出未拨打的数据保存成.sql文件:
|
|
2.查询批次(比较max_member_id和查询的list_id大小)
|
|
2.然后执行插入
3.最后删除之前list_id
4.查询导入之后数据大小
|
|
1.2 数据量大时候处理
批次是按照大于ocm_event表中的max_member_id对比进行拨打,在名单表中小于max_member_id将不会拨打。如果出现跳过拨打的数据,我们需要按照如下步骤处理:注意:首先先要查看对应的名单是否已经拨打但是没有插入扫cti_cdr表,防止重复导入拨打。[
操作:
|
|
]
- 1.未拨打数据采集:[查询未拨打客户名单->将其导入到名单模板中重新导入]
|
|
- 2.ocm_base_shbo处理:[删除未拨打的数据,删除之前先查询]
a.查询未拨打的数据:
|
|
DELETE FROM ocm_base_shbo WHERE event_id = xxx AND cust_id IN (SELECT ob.cust_id FROM ocm_buslist ob
LEFT JOIN cti_cdr cdr ON ob.list_id = cdr.memberid
WHERE ob.event_id = xxx AND cdr.id IS NULL);
select * FROM ocm_buslist WHERE event_id = xxx AND list_id NOT IN (SELECT DISTINCT memberid FROM cti_cdr WHERE notifyid = xxx);
DELETE FROM ocm_buslist WHERE event_id = xxx AND list_id NOT IN (SELECT DISTINCT memberid FROM cti_cdr WHERE notifyid = xxx);
select * from ocm_event_statistics where event_id = xxx
SELECT * FROM ocm_event_statistics WHERE event_id = xxx; //xxx批次id
SELECT * FROM ocm_buslist_timing WHERE event_id = xxx; //xxx批次id
SELECT COUNT(DISTINCT cust_id) FROM ocm_buslist WHERE event_id = xxx; //xxx批次id
SELECT COUNT(*) FROM ocm_base_shbo WHERE event_id = xxx AND valid_flag >= 1; //xxx批次id
SELECT COUNT(*) FROM ocm_base_shbo WHERE event_id = xxx; //xxx批次id
SELECT COUNT(*) FROM ocm_base_shbo WHERE event_id = xxx AND valid_flag = 0; //xxx批次id
SELECT event_id,event_state,event_name,send_time,over_time FROM ocm_event WHERE event_id IN (SELECT DISTINCT event_id FROM ocm_buslist_timing WHERE call_next_time
SELECT enti.id,enti.entname,enti.state,oc.id,oc.parameter FROM cti_entinfo enti LEFT JOIN ocm_after_call_action oc ON enti.id = oc.entid
UPDATE ocm_buslist SET customer_phone=RIGHT(customer_phone,LENGTH(customer_phone)-2) WHERE event_id = 1658 AND list_id>6253939;
UPDATE ocm_buslist_timing SET customer_phone RIGHT(customer_phone,LENGTH(customer_phone)-2) WHERE customer_phone LIKE ‘93%’;
```