add workflow 荟聚API_2,dev

This commit is contained in:
root 2024-04-18 16:23:54 +08:00
parent 6521c2c921
commit 09e518d6a2
1 changed files with 11 additions and 11 deletions

View File

@ -4,7 +4,7 @@
/*Brilliance stems from wisdoms. */
/*************Head Section**************************************************************************/
/*Script Use: Periodically load data to :t01_scrm_leads(SCRM线索-api) */
/*Create Date:2024-04-18 16:20:14 */
/*Create Date:2024-04-18 16:23:34 */
/*SDM Developed By: dev */
/*SDM Developed Date: 2024-04-18 */
/*SDM Checked By: dev */
@ -75,7 +75,7 @@ INSERT INTO t01_scrm_leads_agi_CUR_I (
)
SELECT
COALESCE(TRIM(CAST(p0.customer_id AS VARCHAR(30))),'') /*customer_id*/
,COALESCE(p0."date"::date,TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(p0."date"::timestamp(0),TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(TRIM(CAST(p0.target_name AS VARCHAR(30))),'') /*target_name*/
,'' /*c_name*/
,'' /*c_type*/
@ -128,7 +128,7 @@ INSERT INTO t01_scrm_leads_agi_CUR_I (
)
SELECT
COALESCE(TRIM(CAST(p0.customer_id AS VARCHAR(30))),'') /*customer_id*/
,COALESCE(p0."date"::date,TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(p0."date"::timestamp(0),TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(TRIM(CAST(p0.target_name AS VARCHAR(30))),'') /*target_name*/
,'' /*c_name*/
,'' /*c_type*/
@ -181,7 +181,7 @@ INSERT INTO t01_scrm_leads_agi_CUR_I (
)
SELECT
COALESCE(TRIM(CAST(p0.customer_id AS VARCHAR(30))),'') /*customer_id*/
,COALESCE(p0."date"::date,TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(p0."date"::timestamp(0),TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(TRIM(CAST(p0.target_name AS VARCHAR(30))),'') /*target_name*/
,'' /*c_name*/
,'' /*c_type*/
@ -234,7 +234,7 @@ INSERT INTO t01_scrm_leads_agi_CUR_I (
)
SELECT
COALESCE(TRIM(CAST(p0.customer_id AS VARCHAR(30))),'') /*customer_id*/
,COALESCE(p0."date"::date,TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(p0."date"::timestamp(0),TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(TRIM(CAST(p0.target_name AS VARCHAR(30))),'') /*target_name*/
,'' /*c_name*/
,'' /*c_type*/
@ -287,7 +287,7 @@ INSERT INTO t01_scrm_leads_agi_CUR_I (
)
SELECT
COALESCE(TRIM(CAST(p0.customer_id AS VARCHAR(30))),'') /*customer_id*/
,COALESCE(p0."date"::date,TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(p0."date"::timestamp(0),TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(TRIM(CAST(p0.target_name AS VARCHAR(30))),'') /*target_name*/
,'' /*c_name*/
,'' /*c_type*/
@ -340,7 +340,7 @@ INSERT INTO t01_scrm_leads_agi_CUR_I (
)
SELECT
COALESCE(TRIM(CAST(p0.customer_id AS VARCHAR(30))),'') /*customer_id*/
,COALESCE(p0."date"::date,TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(p0."date"::timestamp(0),TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(TRIM(CAST(p0.target_name AS VARCHAR(30))),'') /*target_name*/
,COALESCE(TRIM(CAST(p0.c_name AS VARCHAR(30))),'') /*c_name*/
,'' /*c_type*/
@ -393,7 +393,7 @@ INSERT INTO t01_scrm_leads_agi_CUR_I (
)
SELECT
COALESCE(TRIM(CAST(p0.customer_id AS VARCHAR(30))),'') /*customer_id*/
,COALESCE(p0."date"::date,TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(p0."date"::timestamp(0),TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(TRIM(CAST(p0.target_name AS VARCHAR(30))),'') /*target_name*/
,'' /*c_name*/
,'' /*c_type*/
@ -446,7 +446,7 @@ INSERT INTO t01_scrm_leads_agi_CUR_I (
)
SELECT
COALESCE(TRIM(CAST(p0.customer_id AS VARCHAR(30))),'') /*customer_id*/
,COALESCE(p0."date"::date,TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(p0."date"::timestamp(0),TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,'' /*target_name*/
,'' /*c_name*/
,'' /*c_type*/
@ -499,7 +499,7 @@ INSERT INTO t01_scrm_leads_agi_CUR_I (
)
SELECT
COALESCE(TRIM(CAST(p0.customer_id AS VARCHAR(30))),'') /*customer_id*/
,COALESCE(p0."date"::date,TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(p0."date"::timestamp(0),TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(TRIM(CAST(p0.target_name AS VARCHAR(30))),'') /*target_name*/
,'' /*c_name*/
,'' /*c_type*/
@ -552,7 +552,7 @@ INSERT INTO t01_scrm_leads_agi_CUR_I (
)
SELECT
COALESCE(TRIM(CAST(p0.customer_id AS VARCHAR(30))),'') /*customer_id*/
,COALESCE(p0."date"::date,TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(p0."date"::timestamp(0),TO_TIMESTAMP(:NULLDATE,'YYYYMMDD')) /*date*/
,COALESCE(TRIM(CAST(p0.target_name AS VARCHAR(30))),'') /*target_name*/
,'' /*c_name*/
,'' /*c_type*/