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

This commit is contained in:
root 2025-02-14 09:59:57 +08:00
parent aa672fcc6a
commit 461890681f
1 changed files with 4 additions and 4 deletions

View File

@ -32,14 +32,14 @@ where visitor_ids <>''*/
/*创建临时表加载当前数据 */
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;
/*创建临时表加载不同数据 */
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;
@ -268,7 +268,7 @@ where contact_channel ='Chat' and p1.visitor_country_code in ('CN','TW')
,P1.Src_Table /*来源表*/
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
AND P1.contact_channel = P2.contact_channel
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 /*平台*/
,contact_channel /*接入渠道*/
,contact_app_id /*接入号ID*/