Merge pull request #312 feature-NEWDWH2021-1274-crm_distribution_Call2_Discussion_vod__c-fix into develop-4-crm-medical

This commit is contained in:
朝倉 明日香 2023-10-27 13:30:23 +09:00
commit 0eb64cc275

View File

@ -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
@ -74,7 +74,7 @@ SET @upsert_statement_base =
MSJ_IST_Minutes__c=internaltb.MSJ_IST_Minutes__c, MSJ_Off_Label_Minutes__c=internaltb.MSJ_Off_Label_Minutes__c, MSJ_Discussion_Objectives__c=internaltb.MSJ_Discussion_Objectives__c,
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,
medaca_parent_record_type_id = internaltb.medaca_parent_record_type_id, file_name=internaltb.file_name, file_row_cnt=internaltb.file_row_cnt,
upd_user = CURRENT_USER(), upd_date = CURRENT_TIMESTAMP();';
OPEN table_cursor;