add workflow 天润Smart-ccc会话数据,dev
This commit is contained in:
parent
29d75c4470
commit
e11101ca68
|
@ -4,11 +4,11 @@
|
|||
/*Brilliance stems from wisdoms. */
|
||||
/*************Head Section**************************************************************************/
|
||||
/*Script Use: Periodically load data to :t01_ccc_chat_record(smartccc会话记录) */
|
||||
/*Create Date:2024-07-19 10:30:29 */
|
||||
/*Create Date:2024-08-12 18:51:12 */
|
||||
/*SDM Developed By: dev */
|
||||
/*SDM Developed Date: 2024-07-18 */
|
||||
/*SDM Checked By: dev */
|
||||
/*SDM Checked Date: 2024-07-19 */
|
||||
/*SDM Checked Date: 2024-08-12 */
|
||||
/*Script Developed By: dev */
|
||||
/*Script Checked By: dev */
|
||||
/*Source table 1: p10_sa.s98_s_tr_chat_records */
|
||||
|
@ -106,8 +106,8 @@ SELECT
|
|||
,COALESCE(TRIM(CAST(p0.visitor_name AS varchar(50))),'') /*visitor_name*/
|
||||
,COALESCE(TRIM(CAST(p0.robot_id AS varchar(10))),'') /*robot_id*/
|
||||
,COALESCE(TRIM(CAST(p0.robot_name AS varchar(10))),'') /*robot_name*/
|
||||
,to_timestamp(p0.robot_start_time::bigint/1000)::timestamp(0) /*robot_start_time*/
|
||||
,to_timestamp(p0.robot_end_time::bigint/1000)::timestamp(0) /*robot_end_time*/
|
||||
,to_timestamp(p0.robot_start_time::bigint)::timestamp(0) /*robot_start_time*/
|
||||
,to_timestamp(p0.robot_end_time::bigint)::timestamp(0) /*robot_end_time*/
|
||||
,COALESCE(TRIM(CAST(p0.qno AS varchar(10))),'') /*queue_no*/
|
||||
,COALESCE(TRIM(CAST(p0.qname AS varchar(10))),'') /*queue_name*/
|
||||
,COALESCE(TRIM(CAST(p0.cno AS varchar(10))),'') /*client_no*/
|
||||
|
@ -117,11 +117,11 @@ SELECT
|
|||
,COALESCE(TRIM(CAST(p0.close_reason AS varchar(10))),'') /*close_reason*/
|
||||
,COALESCE(TRIM(CAST(p0.open_type AS varchar(10))),'') /*open_type*/
|
||||
,COALESCE(CAST(p0.first_response_duration AS int),0) /*first_response_duration*/
|
||||
,to_timestamp(p0.start_time::bigint/1000)::timestamp(0) /*start_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.end_time::bigint)::timestamp(0) /*end_time*/
|
||||
,COALESCE(CAST(p0.queue_time AS int),0) /*queue_time*/
|
||||
,to_timestamp(p0.join_queue_time::bigint/1000)::timestamp(0) /*join_queue_time*/
|
||||
,to_timestamp(p0.bridge_time::bigint/1000)::timestamp(0) /*bridge_time*/
|
||||
,to_timestamp(p0.join_queue_time::bigint)::timestamp(0) /*join_queue_time*/
|
||||
,to_timestamp(p0.bridge_time::bigint)::timestamp(0) /*bridge_time*/
|
||||
,COALESCE(TRIM(CAST(p0.session_type AS varchar(10))),'') /*session_type*/
|
||||
,COALESCE(TRIM(CAST(p0.chat_valid_session AS varchar(10))),'') /*chat_valid_session*/
|
||||
,COALESCE(TRIM(CAST(p0.comment_session AS varchar(10))),'') /*comment_session*/
|
||||
|
|
Loading…
Reference in New Issue