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/AgencyHospitalLinkBatch.cls | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
diff --git a/force-app/main/default/classes/AgencyHospitalLinkBatch.cls b/force-app/main/default/classes/AgencyHospitalLinkBatch.cls
index a723eb5..d851614 100644
--- a/force-app/main/default/classes/AgencyHospitalLinkBatch.cls
+++ b/force-app/main/default/classes/AgencyHospitalLinkBatch.cls
@@ -1,9 +1,6 @@
global class AgencyHospitalLinkBatch implements Database.Batchable<sObject> {
public String query;
private BatchIF_Log__c iflog;
-
- Boolean IsNeedExecute = false; // 2021-03-10 mzy WLIG-BYHD79 SFDC鐜batch鍚堝苟璋冩煡 鏄惁绗﹀悎鎵ц鏉′欢
-
global AgencyHospitalLinkBatch() {
this.query = query;
iflog = new BatchIF_Log__c();
@@ -12,18 +9,6 @@
iflog.ErrorLog__c = '';
insert iflog;
}
-
- // 2021-03-10 mzy WLIG-BYHD79 SFDC鐜batch鍚堝苟璋冩煡 start
- global AgencyHospitalLinkBatch(Boolean NeedExecute) {
- this.query = query;
- iflog = new BatchIF_Log__c();
- iflog.Type__c = 'AgencyHospitalLinkUpdateError';
- iflog.Log__c = 'AgencyHospitalLinkBatch start\n';
- iflog.ErrorLog__c = '';
- insert iflog;
- this.IsNeedExecute = NeedExecute;
- }
- // 2021-03-10 mzy WLIG-BYHD79 SFDC鐜batch鍚堝苟璋冩煡 end
global Database.QueryLocator start(Database.BatchableContext bc) {
//sql璇彞
@@ -67,12 +52,5 @@
iflog.ErrorLog__c = tmp;
}
update iflog;
-
- //2021-03-10 mzy WLIG-BYHD79 SFDC鐜batch鍚堝苟璋冩煡 start
- if(!Test.isRunningTest() &&IsNeedExecute==true){
- //batch閲岃皟鐢ㄤ笅涓�涓猙atch鏃讹紝甯屾湜璺熷師鏈夌殑Schedule閲岄潰浼犵殑鏉℃暟淇濇寔涓�鑷�
- Id execBTId = Database.executebatch(new Sfdc2SapDealersContractBatch(true),200);
- }
- //2021-03-10 mzy WLIG-BYHD79 SFDC鐜batch鍚堝苟璋冩煡 end
}
}
\ No newline at end of file
--
Gitblit v1.9.1