| | |
| | | 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 |
| | | } |
| | | } |
| | | } |