From d8dc84a3d56df839895f1c417a4d9cbee763d262 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期五, 03 三月 2023 14:50:59 +0800
Subject: [PATCH] gzw 测试环境代码更新
---
force-app/main/default/classes/PowerBIUpdateBatch.cls | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
diff --git a/force-app/main/default/classes/PowerBIUpdateBatch.cls b/force-app/main/default/classes/PowerBIUpdateBatch.cls
index 36c3e11..30d0a25 100644
--- a/force-app/main/default/classes/PowerBIUpdateBatch.cls
+++ b/force-app/main/default/classes/PowerBIUpdateBatch.cls
@@ -3,15 +3,9 @@
String query;
Id targetId;
- Boolean IsNeedExecute = false; // 2021-03-05 mzy WLIG-BYHD79 SFDC鐜batch鍚堝苟璋冩煡 鏄惁绗﹀悎鎵ц鏉′欢
-
global PowerBIUpdateBatch(Id targetid) {
this.targetId = targetid;
}
-
- global PowerBIUpdateBatch(Boolean needExecute) {
- IsNeedExecute = needExecute; // 2021-03-05 mzy WLIG-BYHD79 SFDC鐜batch鍚堝苟璋冩煡
- }
global Database.QueryLocator start(Database.BatchableContext BC) {
query = 'select Id, ShareWithPowerBI__c, ShareWithPowerBIFormula__c, ShareWithPowerBI_NeedUpd__c';
@@ -35,14 +29,6 @@
}
global void finish(Database.BatchableContext BC) {
-
- //2021-03-05 mzy WLIG-BYHD79 SFDC鐜batch鍚堝苟璋冩煡 start
- if(!Test.isRunningTest() &&IsNeedExecute==true){
- //batch閲岃皟鐢ㄤ笅涓�涓猙atch鏃讹紝甯屾湜璺熷師鏈夌殑Schedule閲岄潰浼犵殑鏉℃暟淇濇寔涓�鑷�
- Id execBTId = Database.executebatch(new ConsumAutoCancelRequestBatch(true));
- }
- //2021-03-05 mzy WLIG-BYHD79 SFDC鐜batch鍚堝苟璋冩煡 end
-
}
--
Gitblit v1.9.1