From b329ab986e250bb27e46ace97cf208f3b26d145a Mon Sep 17 00:00:00 2001
From: FUYU <fuyu@prec-tech.com>
Date: 星期一, 18 十二月 2023 17:38:15 +0800
Subject: [PATCH] 修改复制(不带产品按钮)
---
force-app/main/default/classes/SSOpportunityBatch.cls | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/SSOpportunityBatch.cls b/force-app/main/default/classes/SSOpportunityBatch.cls
index 9044e7f..d28104c 100644
--- a/force-app/main/default/classes/SSOpportunityBatch.cls
+++ b/force-app/main/default/classes/SSOpportunityBatch.cls
@@ -173,6 +173,9 @@
// 銈ㄣ儵銉笺倰log銇浉銇嶅嚭銇�
if (updSelfList.size() > 0) {
System.debug('updSelfList:' + updSelfList);
+ // SWAG-CE55BX 棰勬祴浼樺寲 start
+ StaticParameter.EscapeOppandStaTrigger = true;
+ // SWAG-CE55BX 棰勬祴浼樺寲 end
Database.SaveResult[] lsr = Database.update(updSelfList, false);
List<Opportunity> reuseUpdateList = new List<Opportunity>();
for (Integer tIdx = 0; tIdx < lsr.size(); tIdx++) {
@@ -246,6 +249,9 @@
//鍙傛暟锛歶pdSelfList 瑕侀噸鏂版彃鍏ョ殑鏁版嵁 indexUpdate 绗嚑娆℃彃鍏�
public void reuseUpdate(List<Opportunity> updSelfList,Integer indexUpdate){
System.debug('杩欐槸姝ゆ柟娉曡蛋鐨勭锛�'+indexUpdate+' 娆′簡銆�');
+ // SWAG-CE55BX 棰勬祴浼樺寲 start
+ StaticParameter.EscapeOppandStaTrigger = true;
+ // SWAG-CE55BX 棰勬祴浼樺寲 end
Database.SaveResult[] lsr = Database.update(updSelfList, false);
List<Opportunity> reuseUpdateList = new List<Opportunity>();
for (Integer tIdx = 0; tIdx < lsr.size(); tIdx++) {
--
Gitblit v1.9.1