add workflow 天润Smart-ccc通话记录,dev

This commit is contained in:
root 2024-08-20 19:27:40 +08:00
parent 7343dd43ca
commit 9a27152401
1 changed files with 7 additions and 6 deletions

View File

@ -4,7 +4,7 @@
/*Brilliance stems from wisdoms. */
/*************Head Section**************************************************************************/
/*Script Use: Periodically load data to :t01_ccc_ob_record(smartccc呼出记录) */
/*Create Date:2024-08-20 19:07:58 */
/*Create Date:2024-08-20 19:27:04 */
/*SDM Developed By: dev */
/*SDM Developed Date: 2024-07-19 */
/*SDM Checked By: dev */
@ -155,11 +155,11 @@ SELECT
,COALESCE(TRIM(CAST(p0.cno AS varchar(10))),'') /*cno*/
,COALESCE(TRIM(CAST(p0.client_name AS varchar(20))),'') /*client_name*/
,COALESCE(TRIM(CAST(p0.client_number AS varchar(20))),'') /*client_number*/
,to_timestamp(p0.start_time::bigint/1000)::timestamp(0) /*start_time*/
,to_timestamp(p0.up_time::bigint/1000)::timestamp(0) /*up_time*/
,to_timestamp(p0.callee_ringing_time::bigint/1000)::timestamp(0) /*callee_ringing_time*/
,to_timestamp(p0.bridge_time::bigint/1000)::timestamp(0) /*bridge_time*/
,to_timestamp(p0.end_time::bigint/1000)::timestamp(0) /*end_time*/
,to_timestamp(p0.start_time::bigint)::timestamp(0) /*start_time*/
,to_timestamp(p0.up_time::bigint)::timestamp(0) /*up_time*/
,to_timestamp(p0.callee_ringing_time::bigint)::timestamp(0) /*callee_ringing_time*/
,to_timestamp(p0.bridge_time::bigint)::timestamp(0) /*bridge_time*/
,to_timestamp(p0.end_time::bigint)::timestamp(0) /*end_time*/
,COALESCE(CAST(p0.bridge_duration AS int),0) /*bridge_duration*/
,COALESCE(CAST(p0.total_duration AS int),0) /*total_duration*/
,COALESCE(CAST(p0.pre_ring_wait_duration AS int),0) /*pre_ring_wait_duration*/
@ -191,6 +191,7 @@ SELECT
FROM p10_sa.s98_s_tr_cc_cdr_ob_list p0
LEFT JOIN :SADB.s98_s_tr_cc_cdr_ob_detail p1
ON p0 .main_unique_id =p1 .main_unique_id
and p0.cno=p1.cno
;