From de62b11fd2203816306ba94226874b2e62420e83 Mon Sep 17 00:00:00 2001
From: GWY <guweiyiscp096@foxmail.com>
Date: 星期五, 15 四月 2022 09:42:05 +0800
Subject: [PATCH] Merge branch 'master' of http://47.92.229.245:8089/r/OlympusSSBG
---
force-app/main/default/classes/CopyOpportunityController.cls | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/classes/CopyOpportunityController.cls b/force-app/main/default/classes/CopyOpportunityController.cls
index 448ba2b..e26803e 100644
--- a/force-app/main/default/classes/CopyOpportunityController.cls
+++ b/force-app/main/default/classes/CopyOpportunityController.cls
@@ -145,6 +145,7 @@
ins_opp.Dealer__c = opportunity.Dealer__c;
ins_opp.CrossCooperativeDealer__c = opportunity.CrossCooperativeDealer__c;
ins_opp.the_Upload_of_quotation_number__c = null;
+ ins_opp.copyOpp__c = opp.Id;
//ins_opp.org_opportunity__c = opp.Id;
insert ins_opp;
@@ -164,9 +165,11 @@
OpportunityTeamMember ins_otm = otm.clone();
ins_otm.OpportunityId = ins_opp.Id;
ins_otm.Id = null;
+ ins_otmList.add(ins_otm);
}
-
+ System.debug(ins_otmList.size());
if (ins_otmList.size() >0 ) {
+ System.debug(ins_otmList);
insert ins_otmList;
}
--
Gitblit v1.9.1