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/AccountDailyUpdateBatchSchedule.cls |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/force-app/main/default/classes/AccountDailyUpdateBatchSchedule.cls b/force-app/main/default/classes/AccountDailyUpdateBatchSchedule.cls
index 3d95275..b0907ba 100644
--- a/force-app/main/default/classes/AccountDailyUpdateBatchSchedule.cls
+++ b/force-app/main/default/classes/AccountDailyUpdateBatchSchedule.cls
@@ -9,16 +9,24 @@
         Integer workdays = UpdateUserTextColBatch.getOlympusWorkDayCount(mon1stDate, toDate);
         //姣忔湀鍒版槰澶╃殑宸ヤ綔鏃�
         Integer workdays1 = UpdateUserTextColBatch.getOlympusWorkDayCount(mon1stDate, yesterDate);
-        
+        Integer day = Date.today().day();
+        System.debug(day + '===========123');
         //Integer Soakup_NotExecute_Day = Integer.valueOf(System.Label.Soakup_NotExecute_Day);
         Integer SSBacth_Execute_Day = Integer.valueOf(System.Label.SSBacth_Execute_Day);
-        if (workdays1 == SSBacth_Execute_Day || workdays != SSBacth_Execute_Day) {
-            Id execBTId = Database.executeBatch(new AccountDailyUpdateBatch('1.鍗庡寳'),4);
-            execBTId = Database.executeBatch(new AccountDailyUpdateBatch('2.涓滃寳'),4);
-            execBTId = Database.executeBatch(new AccountDailyUpdateBatch('3.瑗垮寳'),4);
-            execBTId = Database.executeBatch(new AccountDailyUpdateBatch('4.瑗垮崡'),4);
-            execBTId = Database.executeBatch(new AccountDailyUpdateBatch('5.鍗庝笢'),3);
-            execBTId = Database.executeBatch(new AccountDailyUpdateBatch('6.鍗庡崡'),4);
+        // if (workdays1 == SSBacth_Execute_Day || workdays != SSBacth_Execute_Day) { // 2023-3-1   zyh   娉ㄩ噴
+        if (day != SSBacth_Execute_Day) { // 2023-3-1   zyh   add
+            // Id execBTId = Database.executeBatch(new AccountDailyUpdateBatch('1.鍗庡寳'),4);      // 2022-06-01   zyh   udate
+            // execBTId = Database.executeBatch(new AccountDailyUpdateBatch('2.涓滃寳'),4);     // 2022-06-01   zyh   udate
+            // execBTId = Database.executeBatch(new AccountDailyUpdateBatch('3.瑗垮寳'),4);     // 2022-06-01   zyh   udate
+            // execBTId = Database.executeBatch(new AccountDailyUpdateBatch('4.瑗垮崡'),4);     // 2022-06-01   zyh   udate
+            // execBTId = Database.executeBatch(new AccountDailyUpdateBatch('5.鍗庝笢'),3);     // 2022-06-01   zyh   udate
+            // execBTId = Database.executeBatch(new AccountDailyUpdateBatch('6.鍗庡崡'),4);     // 2022-06-01   zyh   udate
+            Id execBTId = Database.executeBatch(new AccountDailyUpdateBatch('1.鍗庡寳'),2);     // 2022-06-01   zyh   udate
+            execBTId = Database.executeBatch(new AccountDailyUpdateBatch('2.涓滃寳'),2);        // 2022-06-01   zyh   udate
+            execBTId = Database.executeBatch(new AccountDailyUpdateBatch('3.瑗垮寳'),2);        // 2022-06-01   zyh   udate
+            execBTId = Database.executeBatch(new AccountDailyUpdateBatch('4.瑗垮崡'),2);        // 2022-06-01   zyh   udate
+            execBTId = Database.executeBatch(new AccountDailyUpdateBatch('5.鍗庝笢'),2);        // 2022-06-01   zyh   udate
+            execBTId = Database.executeBatch(new AccountDailyUpdateBatch('6.鍗庡崡'),2);        // 2022-06-01   zyh   udate
         }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1