From e0786bae7adc06d77e629b5cd65ad1fe114235cc Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Sep 2025 14:40:34 +0800 Subject: [PATCH] =?UTF-8?q?add=20workflow=20=E5=A4=A9=E6=B6=A6dynamic?= =?UTF-8?q?=E9=82=AE=E4=BB=B6=E5=90=8C=E6=AD=A5,dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../f_ccc_work_ticket_integ_agi.sql | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dev/workflow/TK_Cust/smart_ccc_dynamic_email/smartccc工单信息集成/f_ccc_work_ticket_integ_agi.sql b/dev/workflow/TK_Cust/smart_ccc_dynamic_email/smartccc工单信息集成/f_ccc_work_ticket_integ_agi.sql index b26e531..0dd350f 100644 --- a/dev/workflow/TK_Cust/smart_ccc_dynamic_email/smartccc工单信息集成/f_ccc_work_ticket_integ_agi.sql +++ b/dev/workflow/TK_Cust/smart_ccc_dynamic_email/smartccc工单信息集成/f_ccc_work_ticket_integ_agi.sql @@ -4,11 +4,11 @@ /*Brilliance stems from wisdoms. */ /*************Head Section**************************************************************************/ /*Script Use: Periodically load data to :f_ccc_work_ticket_integ(smartccc工单信息集成) */ -/*Create Date:2025-08-19 16:53:28 */ +/*Create Date:2025-09-19 14:39:59 */ /*SDM Developed By: dev */ /*SDM Developed Date: 2024-07-09 */ /*SDM Checked By: dev */ -/*SDM Checked Date: 2025-08-19 */ +/*SDM Checked Date: 2025-09-19 */ /*Script Developed By: dev */ /*Script Checked By: dev */ /*Source table 1: :PDMDB.t00_china_city_pnum */ @@ -208,10 +208,8 @@ WHERE jsonb_extract_path_text(field, 'id')::int = 299137),'') /*LEAD_PROD ,TO_DATE(:TXDATE,'YYYYMMDD') /*Etl_First_Dt*/ ,current_timestamp(0) /*Etl_Proc_Dt*/ ,0 /*Etl_Batch_No*/ - ,case when p1.tel='' then '' when cardinality(array_remove(replace(replace(replace(p1.tel,'"',''),'[','{'),']','}')::text[],find_first_phone_number(replace(replace(replace(p1.tel,'"',''),'[','{'),']','}')::text[])))=0 then '' -else find_first_phone_number(array_remove(replace(replace(replace(p1.tel,'"',''),'[','{'),']','}')::text[],find_first_phone_number(replace(replace(replace(p1.tel,'"',''),'[','{'),']','}')::text[]))) -end /*second_mobile_number*/ - ,case when p1.tel='' then '' else coalesce(find_first_not_phone_number(replace(replace(replace(p1.tel,'"',''),'[','{'),']','}')::text[]),'') end /*company_phone_number*/ + ,,case when p1.tel='' then '' else trim(leading '0' from coalesce(find_first_not_phone_number(replace(replace(replace(p1.tel,'"',''),'[','{'),']','}')::text[]),'')) end /*second_mobile_number*/ + ,'' /*company_phone_number*/ ,coalesce(p3.district,'') /*district*/ FROM :PDMDB.t01_ccc_work_ticket_info p0