From 1b1347f2e6d40aa75bbfdfb4789d60efeff13ea8 Mon Sep 17 00:00:00 2001
From: GWY <guweiyiscp096@foxmail.com>
Date: 星期五, 15 四月 2022 09:41:12 +0800
Subject: [PATCH] LS内贸未发货和以后的不显示二级经营证(临时)
---
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