From 44375cf28a1b5191856bef7a30cd6b2b17daca81 Mon Sep 17 00:00:00 2001 From: daido Date: Tue, 28 Nov 2023 14:33:28 +0900 Subject: [PATCH] =?UTF-8?q?feat:CRM=20=E8=A3=BD=E5=93=81=E6=8C=87=E6=A8=99?= =?UTF-8?q?=EF=BC=88Product=5FMetrics=5Fvod=5F=5Fc=EF=BC=89=E3=81=AE?= =?UTF-8?q?=E9=A0=85=E7=9B=AE=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crm_distribution_Product_Metrics_vod__c.sql | 11 ++++++++--- s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt | 6 +++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/rds_mysql/stored_procedure/internal02/crm_distribution_Product_Metrics_vod__c.sql b/rds_mysql/stored_procedure/internal02/crm_distribution_Product_Metrics_vod__c.sql index 0d5a1bf8..74281867 100644 --- a/rds_mysql/stored_procedure/internal02/crm_distribution_Product_Metrics_vod__c.sql +++ b/rds_mysql/stored_procedure/internal02/crm_distribution_Product_Metrics_vod__c.sql @@ -52,7 +52,8 @@ SET @upsert_statement_base = EMDS_Main_Driver__c, EMDS_Priority__c, EMDS_Willingness__c, MSJ_KTL_Type__c, MSJ_KTL_Tier__c, MSJ_Publications__c, MSJ_Clinical_Trials__c, MSJ_Speaker_for_Medical_Events__c, MSJ_Advisor_to_Medical_Affairs__c, MSJ_Guidelines_Treatment_Standards__c, MSJ_Therapeutic_Area_Expertise__c, - MSJ_MAP_GAP__c, MSJ_Associations__c, MSJ_Tier_Score__c, medaca_parent_msj_product_classification__c, + MSJ_MAP_GAP__c, MSJ_Associations__c, MSJ_Tier_Score__c, MSJ_Primary_Medical_Focus__c, + MSJ_Secondary_Medical_Focus__c, MSJ_Tertiary_Medical_Focus__c, medaca_parent_msj_product_classification__c, start_datetime, end_datetime, file_name, file_row_cnt, delete_flg, ins_user, ins_date, upd_user, upd_date) SELECT Id, IsDeleted, Name, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp, @@ -65,7 +66,8 @@ SET @upsert_statement_base = EMDS_Main_Driver__c, EMDS_Priority__c, EMDS_Willingness__c, MSJ_KTL_Type__c, MSJ_KTL_Tier__c, MSJ_Publications__c, MSJ_Clinical_Trials__c, MSJ_Speaker_for_Medical_Events__c, MSJ_Advisor_to_Medical_Affairs__c, MSJ_Guidelines_Treatment_Standards__c, MSJ_Therapeutic_Area_Expertise__c, - MSJ_MAP_GAP__c, MSJ_Associations__c, MSJ_Tier_Score__c, medaca_parent_msj_product_classification__c, + MSJ_MAP_GAP__c, MSJ_Associations__c, MSJ_Tier_Score__c, MSJ_Primary_Medical_Focus__c, + MSJ_Secondary_Medical_Focus__c, MSJ_Tertiary_Medical_Focus__c, medaca_parent_msj_product_classification__c, start_datetime, end_datetime, file_name, file_row_cnt, delete_flg, ins_user, ins_date, upd_user, upd_date FROM internal02.crm_Product_Metrics_vod__c AS internaltb @@ -103,7 +105,10 @@ SET @upsert_statement_base = MSJ_Guidelines_Treatment_Standards__c = internaltb.MSJ_Guidelines_Treatment_Standards__c, MSJ_Therapeutic_Area_Expertise__c = internaltb.MSJ_Therapeutic_Area_Expertise__c, MSJ_MAP_GAP__c = internaltb.MSJ_MAP_GAP__c, MSJ_Associations__c = internaltb.MSJ_Associations__c, - MSJ_Tier_Score__c = internaltb.MSJ_Tier_Score__c, + MSJ_Tier_Score__c = internaltb.MSJ_Tier_Score__c, + MSJ_Primary_Medical_Focus__c = internaltb.MSJ_Primary_Medical_Focus__c, + MSJ_Secondary_Medical_Focus__c = internaltb.MSJ_Secondary_Medical_Focus__c, + MSJ_Tertiary_Medical_Focus__c = internaltb.MSJ_Secondary_Medical_Focus__c, medaca_parent_msj_product_classification__c = internaltb.medaca_parent_msj_product_classification__c, start_datetime = internaltb.start_datetime, end_datetime = internaltb.end_datetime, file_name = internaltb.file_name, file_row_cnt = internaltb.file_row_cnt, diff --git a/s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt b/s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt index 7d06ce66..ca7c2dad 100644 --- a/s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt +++ b/s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt @@ -4,9 +4,9 @@ utf-8 " CRLF 1 -53 -Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,Awareness__c,Selling_Stage__c,Formulary_Status__c,Movement__c,Products_vod__c,Segment__c,X12_mo_trx_chg__c,Speaker_Skills__c,Investigator_Readiness__c,Engagements__c,Mobile_ID_vod__c,External_ID_vod__c,MSJ_Patient__c,Detail_Group_vod__c,MSJ_EB_1st_Line_Liver_Meta__c,MSJ_EB_1st_Line_Multi_Meta__c,MSJ_EB_2nd_Line_Mono__c,MSJ_EB_2nd_Line_Combination__c,MSJ_EB_3rd_Line_Mono__c,MSJ_EB_3rd_Line_Combination__c,EMDS_Ability__c,EMDS_Brand_Loyalty__c,EMDS_Decision_Maker__c,EMDS_Early_Tech_Adopter__c,EMDS_Influence__c,EMDS_Main_Driver__c,EMDS_Priority__c,EMDS_Willingness__c,MSJ_KTL_Type__c,MSJ_KTL_Tier__c,MSJ_Publications__c,MSJ_Clinical_Trials__c,MSJ_Speaker_for_Medical_Events__c,MSJ_Advisor_to_Medical_Affairs__c,MSJ_Guidelines_Treatment_Standards__c,MSJ_Therapeutic_Area_Expertise__c,MSJ_MAP_GAP__c,MSJ_Associations__c,MSJ_Tier_Score__c,Products_vod__r.MSJ_Product_Classification__c -Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,Awareness__c,Selling_Stage__c,Formulary_Status__c,Movement__c,Products_vod__c,Segment__c,X12_mo_trx_chg__c,Speaker_Skills__c,Investigator_Readiness__c,Engagements__c,Mobile_ID_vod__c,External_ID_vod__c,MSJ_Patient__c,Detail_Group_vod__c,MSJ_EB_1st_Line_Liver_Meta__c,MSJ_EB_1st_Line_Multi_Meta__c,MSJ_EB_2nd_Line_Mono__c,MSJ_EB_2nd_Line_Combination__c,MSJ_EB_3rd_Line_Mono__c,MSJ_EB_3rd_Line_Combination__c,EMDS_Ability__c,EMDS_Brand_Loyalty__c,EMDS_Decision_Maker__c,EMDS_Early_Tech_Adopter__c,EMDS_Influence__c,EMDS_Main_Driver__c,EMDS_Priority__c,EMDS_Willingness__c,MSJ_KTL_Type__c,MSJ_KTL_Tier__c,MSJ_Publications__c,MSJ_Clinical_Trials__c,MSJ_Speaker_for_Medical_Events__c,MSJ_Advisor_to_Medical_Affairs__c,MSJ_Guidelines_Treatment_Standards__c,MSJ_Therapeutic_Area_Expertise__c,MSJ_MAP_GAP__c,MSJ_Associations__c,MSJ_Tier_Score__c,medaca_parent_msj_product_classification__c +56 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,Awareness__c,Selling_Stage__c,Formulary_Status__c,Movement__c,Products_vod__c,Segment__c,X12_mo_trx_chg__c,Speaker_Skills__c,Investigator_Readiness__c,Engagements__c,Mobile_ID_vod__c,External_ID_vod__c,MSJ_Patient__c,Detail_Group_vod__c,MSJ_EB_1st_Line_Liver_Meta__c,MSJ_EB_1st_Line_Multi_Meta__c,MSJ_EB_2nd_Line_Mono__c,MSJ_EB_2nd_Line_Combination__c,MSJ_EB_3rd_Line_Mono__c,MSJ_EB_3rd_Line_Combination__c,EMDS_Ability__c,EMDS_Brand_Loyalty__c,EMDS_Decision_Maker__c,EMDS_Early_Tech_Adopter__c,EMDS_Influence__c,EMDS_Main_Driver__c,EMDS_Priority__c,EMDS_Willingness__c,MSJ_KTL_Type__c,MSJ_KTL_Tier__c,MSJ_Publications__c,MSJ_Clinical_Trials__c,MSJ_Speaker_for_Medical_Events__c,MSJ_Advisor_to_Medical_Affairs__c,MSJ_Guidelines_Treatment_Standards__c,MSJ_Therapeutic_Area_Expertise__c,MSJ_MAP_GAP__c,MSJ_Associations__c,MSJ_Tier_Score__c,MSJ_Primary_Medical_Focus__c,MSJ_Secondary_Medical_Focus__c,MSJ_Tertiary_Medical_Focus__c,Products_vod__r.MSJ_Product_Classification__c +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,Awareness__c,Selling_Stage__c,Formulary_Status__c,Movement__c,Products_vod__c,Segment__c,X12_mo_trx_chg__c,Speaker_Skills__c,Investigator_Readiness__c,Engagements__c,Mobile_ID_vod__c,External_ID_vod__c,MSJ_Patient__c,Detail_Group_vod__c,MSJ_EB_1st_Line_Liver_Meta__c,MSJ_EB_1st_Line_Multi_Meta__c,MSJ_EB_2nd_Line_Mono__c,MSJ_EB_2nd_Line_Combination__c,MSJ_EB_3rd_Line_Mono__c,MSJ_EB_3rd_Line_Combination__c,EMDS_Ability__c,EMDS_Brand_Loyalty__c,EMDS_Decision_Maker__c,EMDS_Early_Tech_Adopter__c,EMDS_Influence__c,EMDS_Main_Driver__c,EMDS_Priority__c,EMDS_Willingness__c,MSJ_KTL_Type__c,MSJ_KTL_Tier__c,MSJ_Publications__c,MSJ_Clinical_Trials__c,MSJ_Speaker_for_Medical_Events__c,MSJ_Advisor_to_Medical_Affairs__c,MSJ_Guidelines_Treatment_Standards__c,MSJ_Therapeutic_Area_Expertise__c,MSJ_MAP_GAP__c,MSJ_Associations__c,MSJ_Tier_Score__c,MSJ_Primary_Medical_Focus__c,MSJ_Secondary_Medical_Focus__c,MSJ_Tertiary_Medical_Focus__c,medaca_parent_msj_product_classification__c internal02.crm_Product_Metrics_vod__c org02.crm_Product_Metrics_vod__c CRM_Product_Metrics_vod__c_ex.sql