add workflow 天润Smart-ccc通话记录,dev
This commit is contained in:
parent
031556c243
commit
84b259a4c0
|
@ -4,16 +4,18 @@
|
|||
/*Brilliance stems from wisdoms. */
|
||||
/*************Head Section**************************************************************************/
|
||||
/*Script Use: Periodically load data to :cust_call_ccc_record(ccc通话记录) */
|
||||
/*Create Date:2024-09-18 18:59:25 */
|
||||
/*Create Date:2024-10-21 11:43:30 */
|
||||
/*SDM Developed By: dev */
|
||||
/*SDM Developed Date: 2024-08-22 */
|
||||
/*SDM Checked By: dev */
|
||||
/*SDM Checked Date: 2024-09-18 */
|
||||
/*SDM Checked Date: 2024-10-21 */
|
||||
/*Script Developed By: dev */
|
||||
/*Script Checked By: dev */
|
||||
/*Source table 1: :PDMDB.t01_ccc_ob_record */
|
||||
/*Source table 2: :PDMDB.t01_ccc_ib_record */
|
||||
/*Source table 3: :COMMDB.select distinct on (tel) * from p30_common.d_ccc_cust_info
|
||||
/*Source table 2: :PDMDB.select distinct on (tel) * from p30_common.d_ccc_cust_info
|
||||
where tel<>'' */
|
||||
/*Source table 3: :PDMDB.t01_ccc_ib_record */
|
||||
/*Source table 4: :COMMDB.select distinct on (tel) * from p30_common.d_ccc_cust_info
|
||||
where tel<>'' */
|
||||
/*Job Type: Inbound transform (Tier 1 to Tier 2) */
|
||||
/*Target Table:cust_call_ccc_record */
|
||||
|
@ -94,7 +96,7 @@ SELECT
|
|||
,COALESCE(TRIM(p0.first_call_number),'') /*call_number*/
|
||||
,COALESCE(TRIM(p0.first_call_cno),'') /*call_cno*/
|
||||
,COALESCE(TRIM(p0.first_call_cname),'') /*call_cname*/
|
||||
,'' /*call_qname*/
|
||||
,COALESCE(TRIM(p0.first_call_qname),'') /*call_qname*/
|
||||
,'InBound' /*call_source_type*/
|
||||
,COALESCE(TRIM(p0.call_type),'') /*call_type*/
|
||||
,'' /*call_type_desc*/
|
||||
|
@ -102,10 +104,10 @@ SELECT
|
|||
,COALESCE(TRIM(p0.ib_status),'') /*call_status*/
|
||||
,COALESCE(TRIM(p0.ib_result),'') /*call_result*/
|
||||
,COALESCE(TRIM(p0.webrtc_call_id),'') /*webrtc_call_id*/
|
||||
,'' /*hotline_name*/
|
||||
,COALESCE(TRIM(p0.hotline_name),'') /*hotline_name*/
|
||||
,COALESCE(TRIM(p0.on_hook_source),'') /*on_hook_source*/
|
||||
,COALESCE(TRIM(p0.investigation_keys),'') /*investigation_keys*/
|
||||
,'' /*agent_answer_in_time*/
|
||||
,COALESCE(TRIM(p0.agent_answer_in_time),'') /*agent_answer_in_time*/
|
||||
,COALESCE(TRIM(p0.evaluation),'') /*evaluation*/
|
||||
,COALESCE(p0.start_time,TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*start_time*/
|
||||
,COALESCE(p0.ring_time,TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*ring_time*/
|
||||
|
@ -216,6 +218,9 @@ SELECT
|
|||
,'t01_ccc_ob_record' /*Src_Table*/
|
||||
|
||||
FROM :PDMDB.t01_ccc_ob_record p0
|
||||
LEFT JOIN (select distinct on (tel) * from p30_common.d_ccc_cust_info
|
||||
where tel<>'') p1
|
||||
ON p0 .customer_number =p1.tel
|
||||
;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue