diff --git a/rds_mysql/stored_procedure/internal02/crm_distribution_Call2_Discussion_vod__c.sql b/rds_mysql/stored_procedure/internal02/crm_distribution_Call2_Discussion_vod__c.sql index 1fd4e4ea..ed3b272e 100644 --- a/rds_mysql/stored_procedure/internal02/crm_distribution_Call2_Discussion_vod__c.sql +++ b/rds_mysql/stored_procedure/internal02/crm_distribution_Call2_Discussion_vod__c.sql @@ -40,23 +40,23 @@ START TRANSACTION; -- UPSERT STATEMENT設定 SET @upsert_statement_base = 'INSERT INTO $$distribution_schema$$.crm_Call2_Discussion_vod__c( - Id, IsDeleted, Name, RecordTypeId, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp, MayEdit, - IsLocked, Account_vod__c, Call2_vod__c, Activity__c, Comments__c, Contact_vod__c, Call_Date_vod__c, Product_Strategy_vod__c, - Product_Tactic_vod__c, Restricted_Comments__c, Product_vod__c, Presentation__c, Discussion_Topics__c, Slides__c, User_vod__c, - Indication__c, Mobile_ID_vod__c, Medical_Event_vod__c, Is_Parent_Call_vod__c, Override_Lock_vod__c, zvod_Product_Map_vod__c, - Attendee_Type_vod__c, Entity_Reference_Id_vod__c, Account_Tactic_vod__c, MSJ_Material_Type__c, MSJ_Discussion_Contents__c, - MSJ_IST_Minutes__c, MSJ_Off_Label_Minutes__c, MSJ_Discussion_Objectives__c, MSJ_Insight__c, EMDS_Materials__c, EMDS_Topic__c, - MSJ_Visit_Purpose__c, MSJ_Insight_Count__c, - file_name, file_row_cnt, delete_flg, ins_user, ins_date, upd_user, upd_date) + Id, IsDeleted, Name, RecordTypeId, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp, MayEdit, + IsLocked, Account_vod__c, Call2_vod__c, Activity__c, Comments__c, Contact_vod__c, Call_Date_vod__c, Product_Strategy_vod__c, + Product_Tactic_vod__c, Restricted_Comments__c, Product_vod__c, Presentation__c, Discussion_Topics__c, Slides__c, User_vod__c, + Indication__c, Mobile_ID_vod__c, Medical_Event_vod__c, Is_Parent_Call_vod__c, Override_Lock_vod__c, zvod_Product_Map_vod__c, + Attendee_Type_vod__c, Entity_Reference_Id_vod__c, Account_Tactic_vod__c, MSJ_Material_Type__c, MSJ_Discussion_Contents__c, + MSJ_IST_Minutes__c, MSJ_Off_Label_Minutes__c, MSJ_Discussion_Objectives__c, MSJ_Insight__c, EMDS_Materials__c, EMDS_Topic__c, + MSJ_Visit_Purpose__c, MSJ_Insight_Count__c, medaca_parent_record_type_id, file_name, file_row_cnt, delete_flg, ins_user, + ins_date, upd_user, upd_date) SELECT - Id, IsDeleted, Name, RecordTypeId, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp, MayEdit, - IsLocked, Account_vod__c, Call2_vod__c, Activity__c, Comments__c, Contact_vod__c, Call_Date_vod__c, Product_Strategy_vod__c, - Product_Tactic_vod__c, Restricted_Comments__c, Product_vod__c, Presentation__c, Discussion_Topics__c, Slides__c, User_vod__c, - Indication__c, Mobile_ID_vod__c, Medical_Event_vod__c, Is_Parent_Call_vod__c, Override_Lock_vod__c, zvod_Product_Map_vod__c, - Attendee_Type_vod__c, Entity_Reference_Id_vod__c, Account_Tactic_vod__c, MSJ_Material_Type__c, MSJ_Discussion_Contents__c, - MSJ_IST_Minutes__c, MSJ_Off_Label_Minutes__c, MSJ_Discussion_Objectives__c, MSJ_Insight__c, EMDS_Materials__c, EMDS_Topic__c, - MSJ_Visit_Purpose__c, MSJ_Insight_Count__c, - file_name, file_row_cnt, delete_flg, ins_user, ins_date, upd_user, upd_date + Id, IsDeleted, Name, RecordTypeId, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp, MayEdit, + IsLocked, Account_vod__c, Call2_vod__c, Activity__c, Comments__c, Contact_vod__c, Call_Date_vod__c, Product_Strategy_vod__c, + Product_Tactic_vod__c, Restricted_Comments__c, Product_vod__c, Presentation__c, Discussion_Topics__c, Slides__c, User_vod__c, + Indication__c, Mobile_ID_vod__c, Medical_Event_vod__c, Is_Parent_Call_vod__c, Override_Lock_vod__c, zvod_Product_Map_vod__c, + Attendee_Type_vod__c, Entity_Reference_Id_vod__c, Account_Tactic_vod__c, MSJ_Material_Type__c, MSJ_Discussion_Contents__c, + MSJ_IST_Minutes__c, MSJ_Off_Label_Minutes__c, MSJ_Discussion_Objectives__c, MSJ_Insight__c, EMDS_Materials__c, EMDS_Topic__c, + MSJ_Visit_Purpose__c, MSJ_Insight_Count__c, medaca_parent_record_type_id, file_name, file_row_cnt, delete_flg, ins_user, + ins_date, upd_user, upd_date FROM internal02.crm_Call2_Discussion_vod__c AS internaltb WHERE @@ -75,7 +75,8 @@ SET @upsert_statement_base = MSJ_Insight__c=internaltb.MSJ_Insight__c, EMDS_Materials__c=internaltb.EMDS_Materials__c, EMDS_Topic__c=internaltb.EMDS_Topic__c, MSJ_Visit_Purpose__c=internaltb.MSJ_Visit_Purpose__c, MSJ_Insight_Count__c=internaltb.MSJ_Insight_Count__c, file_name=internaltb.file_name, file_row_cnt=internaltb.file_row_cnt, - upd_user = CURRENT_USER(), upd_date = CURRENT_TIMESTAMP();'; + upd_user = CURRENT_USER(), upd_date = CURRENT_TIMESTAMP(), + medaca_parent_record_type_id = internaltb.medaca_parent_record_type_id;'; OPEN table_cursor;