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/OPDPlanMarkBatchSchedule.cls | 20 ++------------------
1 files changed, 2 insertions(+), 18 deletions(-)
diff --git a/force-app/main/default/classes/OPDPlanMarkBatchSchedule.cls b/force-app/main/default/classes/OPDPlanMarkBatchSchedule.cls
index d40bdea..60cfcc9 100644
--- a/force-app/main/default/classes/OPDPlanMarkBatchSchedule.cls
+++ b/force-app/main/default/classes/OPDPlanMarkBatchSchedule.cls
@@ -38,24 +38,8 @@
if (monWorkDays - workdays == 1 && ssDay != null && ssDay.size() > 0 && ssDay.get(0).IsWorkDay__c == 1 ) {
// 灏嗘鎵ц璇彞杞Щ鑷砄PDPlanSystemDelayBatch finish鍐� SWAG-BXW4AH 銆愬鎵樸�� OPD璁″垝鍐嶇敵璇烽�昏緫璁剧疆
// Id execBTId = Database.executebatch(new OPDPlanMarkBatch(), 100);
+ Id execBTId = Database.executebatch(new OPDPlanSystemDelayBatch(), 100);
- // SWAG-C8U67Z 銆愬鎵樸�慜PD璁″垝椤甸潰TAT瀛楁娣诲姞 2022/01/04 start
- // 澶囧搧瀹℃壒浼樺厛搴﹀拰鍑哄簱浼樺厛搴�
- // 鏃堕棿鑺傜偣锛氫笂鏈堟媿鐓ф棩鏈�-鏈湀鎷嶇収鏃ユ湡
- // 娉ㄦ剰鏃堕棿鑺傜偣閲嶅彔浜х敓鐨勬暟鎹氦鍙夌殑闂
- // 鍙栧緱涓婁釜鏈堢殑鎷嶇収鏃�
- Date date_1mon_ago = toDate.addMonths(-1);
- Date first_1mon_ago = Date.newInstance(date_1mon_ago.year(), date_1mon_ago.month(), 1);
- Date last_1mon_ago = Date.newInstance(toDate.year(), toDate.month(), 0);
- // 涓婁釜鏈堢殑鎵�鏈夊伐浣滄棩
- List<OlympusCalendar__c> workdays_1mon_ago = [SELECT Date__c FROM OlympusCalendar__c WHERE Date__c >= :first_1mon_ago AND Date__c <= :last_1mon_ago AND IsWorkDay__c = 1];
- if (workdays_1mon_ago != null && workdays_1mon_ago.size() > 2) {
- Date last2toend_1mon_ago = workdays_1mon_ago[workdays_1mon_ago.size() - 2].Date__c;
- Id execBTId = Database.executeBatch(new SparePartsSequencingBatch(last2toend_1mon_ago, toDate), 5);
- }
- // 鎸埌SparePartsSequencingBatch鍘绘墽琛�
- // Id execBTId = Database.executebatch(new OPDPlanSystemDelayBatch(), 100);
- // SWAG-C8U67Z 銆愬鎵樸�慜PD璁″垝椤甸潰TAT瀛楁娣诲姞 2022/01/04 end
}
// 2020-11-6 mzy SWAG-BSC5WP add end
@@ -67,6 +51,6 @@
}
// 2021-02-19 XHL SWAG-BYD6DD End
// ==========================================================================================
-
+ Id execBTId5 = Database.executebatch(new AssetWhereabouts(),20);
}
}
\ No newline at end of file
--
Gitblit v1.9.1