diff --git a/dev/workflow/TK_Cust/smart_ccc_chat/ccc客户信息/d_ccc_cust_info_agi.sql b/dev/workflow/TK_Cust/smart_ccc_chat/ccc客户信息/d_ccc_cust_info_agi.sql index 25dbcb8..4353378 100644 --- a/dev/workflow/TK_Cust/smart_ccc_chat/ccc客户信息/d_ccc_cust_info_agi.sql +++ b/dev/workflow/TK_Cust/smart_ccc_chat/ccc客户信息/d_ccc_cust_info_agi.sql @@ -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*/