add workflow 天润Smart-ccc客户数据,dev

This commit is contained in:
root 2024-08-01 15:55:46 +08:00
parent eef2f8ca15
commit 0590572d07
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
/*Brilliance stems from wisdoms. */
/*************Head Section**************************************************************************/
/*Script Use: Periodically load data to :cust_label_rela(客户标签关系表) */
/*Create Date:2024-08-01 10:13:50 */
/*Create Date:2024-08-01 15:48:28 */
/*SDM Developed By: dev */
/*SDM Developed Date: 2024-07-11 */
/*SDM Checked By: dev */
@ -69,7 +69,7 @@ SELECT
,Substr('t01_ccc_cust_info',1,3) /*Src_Sysname*/
,'t01_ccc_cust_info' /*Src_Table*/
FROM (select id,unnest(string_to_array(replace(replace(label_ids,'[',''),']',''),',')) label_id,external_id from p20_pdm.t01_ccc_cust_info tcci
FROM (select id,trim(unnest(string_to_array(replace(replace(label_ids,'[',''),']',''),','))) label_id,external_id from p20_pdm.t01_ccc_cust_info tcci
where length(trim(external_id))>0) p0
LEFT JOIN :PDMDB.t01_ccc_cust_label p1
ON p0.label_id=p1.label_id