From ca1c0956ec5d16a44bd0a2c10e0e49db37c0fb32 Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期三, 08 三月 2023 09:35:52 +0800
Subject: [PATCH] 20230307询价2期Batch增加入Schedule

---
 force-app/main/default/classes/OPDPlanMarkBatchSchedule.cls |   22 ++++------------------
 1 files changed, 4 insertions(+), 18 deletions(-)

diff --git a/force-app/main/default/classes/OPDPlanMarkBatchSchedule.cls b/force-app/main/default/classes/OPDPlanMarkBatchSchedule.cls
index d40bdea..cc62fb7 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,8 @@
         }
         // 2021-02-19 XHL SWAG-BYD6DD End
         // ==========================================================================================
-
+        Id execBTId5 = Database.executebatch(new AssetWhereabouts(),20);
+        // 20230307璇环2鏈烞atch澧炲姞鍏chedule
+        Id execBTId1 = Database.executebatch(new EquipmentRepairBatch(),20);
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1