From ebf94c10a7a029c0a6f07153531bb989a1ea10f3 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 10 Feb 2025 12:44:12 +0800 Subject: [PATCH] =?UTF-8?q?add=20workflow=20=E5=A4=A9=E6=B6=A6Smart-ccc?= =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E6=95=B0=E6=8D=AE,dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../smartccc会话记录/t01_ccc_chat_record_agi.sql | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dev/workflow/TK_Cust/smart_ccc_chat/smartccc会话记录/t01_ccc_chat_record_agi.sql b/dev/workflow/TK_Cust/smart_ccc_chat/smartccc会话记录/t01_ccc_chat_record_agi.sql index a35f78b..cd1325f 100644 --- a/dev/workflow/TK_Cust/smart_ccc_chat/smartccc会话记录/t01_ccc_chat_record_agi.sql +++ b/dev/workflow/TK_Cust/smart_ccc_chat/smartccc会话记录/t01_ccc_chat_record_agi.sql @@ -4,7 +4,7 @@ /*Brilliance stems from wisdoms. */ /*************Head Section**************************************************************************/ /*Script Use: Periodically load data to :t01_ccc_chat_record(smartccc会话记录) */ -/*Create Date:2025-02-10 12:20:26 */ +/*Create Date:2025-02-10 12:43:51 */ /*SDM Developed By: dev */ /*SDM Developed Date: 2024-07-18 */ /*SDM Checked By: dev */ @@ -119,8 +119,10 @@ SELECT ,0 /*first_response_duration*/ ,to_timestamp(p0.start_time::bigint)::timestamp(0) /*start_time*/ ,to_timestamp(p0.end_time::bigint)::timestamp(0) /*end_time*/ - ,COALESCE(CAST(p0.queue_duration AS int),0) /*queue_time*/ - ,0 /*join_queue_time*/ + ,EXTRACT(HOUR FROM queue_duration_pretty::time) * 3600 + + EXTRACT(MINUTE FROM queue_duration_pretty::time) * 60 + + EXTRACT(SECOND FROM queue_duration_pretty::time) /*queue_time*/ + ,to_timestamp(p0.start_time::bigint)::timestamp(0) /*join_queue_time*/ ,to_timestamp(p0.start_time::bigint)::timestamp(0) /*bridge_time*/ ,COALESCE(TRIM(CAST(p0.session_tags AS varchar(10))),'') /*session_type*/ ,COALESCE(TRIM(CAST(p0.is_valid_name AS varchar(10))),'') /*chat_valid_session*/