add workflow 天润Smart-ccc会话数据,dev
This commit is contained in:
parent
4606aa08a3
commit
21ea9e75d0
|
@ -4,7 +4,7 @@
|
|||
/*Brilliance stems from wisdoms. */
|
||||
/*************Head Section**************************************************************************/
|
||||
/*Script Use: Periodically load data to :d_ccc_cust_info(ccc客户信息) */
|
||||
/*Create Date:2024-09-14 17:53:33 */
|
||||
/*Create Date:2024-09-14 17:58:06 */
|
||||
/*SDM Developed By: dev */
|
||||
/*SDM Developed Date: 2024-08-01 */
|
||||
/*SDM Checked By: dev */
|
||||
|
@ -80,7 +80,8 @@ SELECT
|
|||
COALESCE(TRIM(p0.id),'') /*id*/
|
||||
,COALESCE(TRIM(p0.name),'') /*name*/
|
||||
,COALESCE(TRIM(p0.sex),'') /*sex*/
|
||||
,coalesce(find_first_phone_number(replace(replace(replace(p0.tel,'"',''),'[','{'),']','}')::text[]),find_first_not_phone_number(replace(replace(replace(p0.tel,'"',''),'[','{'),']','}')::text[]),'null') /*tel*/
|
||||
,case when
|
||||
p0.tel='' then '' else coalesce(find_first_phone_number(replace(replace(replace(p0.tel,'"',''),'[','{'),']','}')::text[]),find_first_not_phone_number(replace(replace(replace(p0.tel,'"',''),'[','{'),']','}')::text[]),'null') end /*tel*/
|
||||
,COALESCE(TRIM(p0.email),'') /*email*/
|
||||
,COALESCE(TRIM(p0.address),'') /*address*/
|
||||
,coalesce((SELECT jsonb_extract_path_text(j, 'value')
|
||||
|
|
Loading…
Reference in New Issue