一. 批量筛号:
Call_Filter_Task =(Id, Step, Status, BatchId, CateGoryId, TaskType, TotalNum, Creator, CreateTime, RunBeginTime, RunEndTime)
Call_Filter_Send_Batch = (Id, Status, Filter_Task_Id, Order, TotalNum, Creator, CreateTime)
Call_Filter_Send_Batch_Log= (Id, Filter_Task_Id, Order, TotalNum, Task_Id, Creator, CreateTime, RunBeginTime, RunEndTime
| Send_FromFlag, Send_RecvFlag, Send_BeginTime, Send_RecvTime, Send_Res_SumInfo
| Query_FromFlag, Query_RecvFlag, Query_BeginTime, Query_RecvTime,Query_Res_SumInfo )
Call_Filter_Send_Detail = (Id, Filter_Send_Batch_Id, TelId, TelNo, Call_Info, Record_Id, Creator, CreateTime)
Call_Filter_Send_QueryRes= (Id,Filter_Send_Batch_Id,Nid,Phone,Call_Status,BillSec,Call_Start_Time,Answer_Time,
Call_End_Time,Wait_Time,Uniqueid,Fail_Call_Times,Success_Call_Times,Ivr_Key,
Agent,Agent_Billsec,Agent_Answer_Time,Agent_End_Time,CreateTime);
产生文件数据:"Call_Filter_Send_Batch记录" 和 “Call_Filter_Send_Detail记录” 和 “Call_Filter_Send_Detail文件”,每个批次文件的最大笔数为1000(可以修改配置)。
产生日志记录“Call_Filter_Send_Batch_Log”,并且修改Call_Filter_Send_Batch_Log的状态为“Send_FromFlag=0->1 | Send_RecvFlag=0->1或-1”
Step4: 查询JOB,查询“Call_Filter_Send_Batch_Log的记录”,根据“发送状态为Send_RecvFlag=1 且 Query_FromFlag=0”的日志记录,然后执行查询API接口;
更新日志记录“Call_Filter_Send_Batch_Log”的状态为“Query_FromFlag=0->1 | Query_RecvFlag=0->1或-1”;