add workflow 天润Smart-ccc会话数据,dev
This commit is contained in:
parent
d0d6f2f54b
commit
a6447fc6ed
|
@ -4,11 +4,11 @@
|
|||
/*Brilliance stems from wisdoms. */
|
||||
/*************Head Section**************************************************************************/
|
||||
/*Script Use: Periodically load data to :cust_chat_record_info(ccc客户会话记录信息) */
|
||||
/*Create Date:2025-02-14 09:58:24 */
|
||||
/*Create Date:2025-02-18 16:30:41 */
|
||||
/*SDM Developed By: dev */
|
||||
/*SDM Developed Date: 2024-08-14 */
|
||||
/*SDM Checked By: dev */
|
||||
/*SDM Checked Date: 2025-02-14 */
|
||||
/*SDM Checked Date: 2025-02-18 */
|
||||
/*Script Developed By: dev */
|
||||
/*Script Checked By: dev */
|
||||
/*Source table 1: :COMMDB.select replace(jsonb_array_elements(visitor_ids::jsonb)::text,'"','') as visitor_id ,row_number() over(partition by replace(jsonb_array_elements(visitor_ids::jsonb)::text,'"','') order by id desc) rn ,* from p30_common.d_ccc_cust_info dcci
|
||||
|
@ -79,7 +79,7 @@ INSERT INTO cust_chat_record_info_agi_CUR_I (
|
|||
,Src_Table /*来源表*/
|
||||
)
|
||||
SELECT
|
||||
COALESCE(TRIM(p0.chat_unique_id),'') /*chat_unique_id*/
|
||||
p0.contact_account /*chat_unique_id*/
|
||||
,'Smart CCC' /*chat_channel*/
|
||||
,coalesce(p2.data_detail,'') /*contact_channel*/
|
||||
,COALESCE(TRIM(p0.contact_app_id),'') /*contact_app_id*/
|
||||
|
@ -122,7 +122,7 @@ and p1.rn=1
|
|||
LEFT JOIN :PDMDB.t99_ccc_code p2
|
||||
ON p2.code_type ='chat_contact_channel'
|
||||
and p0.contact_channel =p2.data_code
|
||||
|
||||
where p0 .chat_valid_session <>'流失会话'
|
||||
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in New Issue