From ba1c90575c47f9cb5c2ce0a20da90d3b1739b5fa Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 26 四月 2022 11:47:45 +0800
Subject: [PATCH] 0425 Commit
---
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