add workflow 天润Smart-ccc会话数据,dev
This commit is contained in:
parent
2be4a970f4
commit
8f49eea131
|
@ -4,7 +4,7 @@
|
|||
/*Brilliance stems from wisdoms. */
|
||||
/*************Head Section**************************************************************************/
|
||||
/*Script Use: Periodically load data to :cust_contact_info(客户联系信息) */
|
||||
/*Create Date:2025-07-14 16:51:16 */
|
||||
/*Create Date:2025-07-14 17:16:33 */
|
||||
/*SDM Developed By: dev */
|
||||
/*SDM Developed Date: 2024-01-19 */
|
||||
/*SDM Checked By: dev */
|
||||
|
@ -149,7 +149,7 @@ p1.contact_id
|
|||
,p1.user_id as contact
|
||||
,case when crm_contact ='' and scrm_contact ='' and livechat_contact ='' then 'Udesk' else trim(case when crm_contact <> '' then 'CRM ' else '' end || case when scrm_contact <> '' then 'SCRM ' else '' end ||case when livechat_contact <> '' then 'Livechat ' else '' end) end contact_channel
|
||||
,coalesce(p6.name,p2.full_name,p3.full_name,p4.full_name,p5.full_name ,'') full_name
|
||||
,coalesce(p6.tel,p2.mobile_phone,p3.mobile_phone,p4.mobile_phone,p5.mobile_phone ,'') mobile
|
||||
,coalesce(cast(p6.tel as varchar(15)),p2.mobile_phone,p3.mobile_phone,p4.mobile_phone,p5.mobile_phone ,'') mobile
|
||||
,coalesce(p6.email,p2.email,p3.email,p4.email,'') email
|
||||
,coalesce(p6.external_id,p3.wechat_id,'') wechat
|
||||
,coalesce(p6.company,p2.company_name,p3.company_name,p4.company_name,p5.company_name ,'') company
|
||||
|
|
Loading…
Reference in New Issue