add workflow 天润Smart-ccc会话数据,dev

This commit is contained in:
root 2025-02-14 09:54:49 +08:00
parent c16755e544
commit 7ffd980dbb
1 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@
/*Brilliance stems from wisdoms. */ /*Brilliance stems from wisdoms. */
/*************Head Section**************************************************************************/ /*************Head Section**************************************************************************/
/*Script Use: Periodically load data to :cust_chat_record_info(ccc客户会话记录信息) */ /*Script Use: Periodically load data to :cust_chat_record_info(ccc客户会话记录信息) */
/*Create Date:2025-02-14 09:50:04 */ /*Create Date:2025-02-14 09:53:28 */
/*SDM Developed By: dev */ /*SDM Developed By: dev */
/*SDM Developed Date: 2024-08-14 */ /*SDM Developed Date: 2024-08-14 */
/*SDM Checked By: dev */ /*SDM Checked By: dev */
@ -32,14 +32,14 @@ where visitor_ids <>''*/
/*创建临时表加载当前数据 */ /*创建临时表加载当前数据 */
CREATE TEMPORARY TABLE cust_chat_record_info_agi_CUR_I CREATE TEMPORARY TABLE cust_chat_record_info_agi_CUR_I
( LIKE :MART.cust_chat_record_info) ( LIKE :MARTDB.cust_chat_record_info)
ON COMMIT PRESERVE ROWS; ON COMMIT PRESERVE ROWS;
/*创建临时表加载不同数据 */ /*创建临时表加载不同数据 */
CREATE TEMPORARY TABLE cust_chat_record_info_agi_INS CREATE TEMPORARY TABLE cust_chat_record_info_agi_INS
( LIKE :MART.cust_chat_record_info) ( LIKE :MARTDB.cust_chat_record_info)
ON COMMIT PRESERVE ROWS; ON COMMIT PRESERVE ROWS;
@ -268,7 +268,7 @@ where contact_channel ='Chat' and p1.visitor_country_code in ('CN','TW')
,P1.Src_Table /*来源表*/ ,P1.Src_Table /*来源表*/
FROM cust_chat_record_info_agi_CUR_I P1 FROM cust_chat_record_info_agi_CUR_I P1
LEFT JOIN :MART.cust_chat_record_info P2 LEFT JOIN :MARTDB.cust_chat_record_info P2
ON P1.chat_channel = P2.chat_channel ON P1.chat_channel = P2.chat_channel
AND P1.contact_channel = P2.contact_channel AND P1.contact_channel = P2.contact_channel
AND P1.contact_app_id = P2.contact_app_id AND P1.contact_app_id = P2.contact_app_id
@ -317,7 +317,7 @@ WHERE P2.chat_channel IS NULL
; ;
/*将新增数据插入到目标表 */ /*将新增数据插入到目标表 */
;INSERT INTO :MART.cust_chat_record_info ( ;INSERT INTO :MARTDB.cust_chat_record_info (
chat_channel /*平台*/ chat_channel /*平台*/
,contact_channel /*接入渠道*/ ,contact_channel /*接入渠道*/
,contact_app_id /*接入号ID*/ ,contact_app_id /*接入号ID*/