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

This commit is contained in:
root 2024-09-14 17:53:55 +08:00
parent 4b05d31173
commit 4606aa08a3
1 changed files with 3 additions and 3 deletions

View File

@ -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 16:21:41 */
/*Create Date:2024-09-14 17:53:33 */
/*SDM Developed By: dev */
/*SDM Developed Date: 2024-08-01 */
/*SDM Checked By: dev */
@ -80,7 +80,7 @@ SELECT
COALESCE(TRIM(p0.id),'') /*id*/
,COALESCE(TRIM(p0.name),'') /*name*/
,COALESCE(TRIM(p0.sex),'') /*sex*/
,coalesce(find_first_phone_number(replace(replace(replace(p1.tel,'"',''),'[','{'),']','}')::text[]),find_first_not_phone_number(replace(replace(replace(p1.tel,'"',''),'[','{'),']','}')::text[]),'null') /*tel*/
,coalesce(find_first_phone_number(replace(replace(replace(p0.tel,'"',''),'[','{'),']','}')::text[]),find_first_not_phone_number(replace(replace(replace(p0.tel,'"',''),'[','{'),']','}')::text[]),'null') /*tel*/
,COALESCE(TRIM(p0.email),'') /*email*/
,COALESCE(TRIM(p0.address),'') /*address*/
,coalesce((SELECT jsonb_extract_path_text(j, 'value')
@ -98,7 +98,7 @@ SELECT
,coalesce((SELECT jsonb_extract_path_text(j, 'value')
FROM jsonb_array_elements(p0.customize::jsonb) j
WHERE jsonb_extract_path_text(j, 'name') = '应用'),'') /*app*/
,COALESCE(TRIM(p0.level),'') /*level*/
,p0.level /*level*/
,COALESCE(TRIM(p0.share_type),'') /*share_type*/
,COALESCE(TRIM(p0.share),'') /*share*/
,COALESCE(TRIM(p0.remark),'') /*remark*/