force-app/main/default/classes/ConsumAutoSelectBatch.cls
@@ -10,9 +10,11 @@
    // 2021-03-05  mzy  WLIG-BYHD79  SFDC环境batch合并调查  start
    global ConsumAutoSelectBatch( ) {
    }
    global ConsumAutoSelectBatch(Boolean NeedExecute) {
        this.IsNeedExecute = NeedExecute;
    }
    // 20220309 ljh  SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 start
    // global ConsumAutoSelectBatch(Boolean NeedExecute) {
    //     this.IsNeedExecute = NeedExecute;
    // }
    // 20220309 ljh  SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 end
    // 2021-03-05  mzy  WLIG-BYHD79  SFDC环境batch合并调查  end
    /**
@@ -100,10 +102,10 @@
        }
        //2021-03-05  mzy  WLIG-BYHD79  SFDC环境batch合并调查  start
        if(!Test.isRunningTest() &&IsNeedExecute==true){
            //batch里调用下一个batch时,希望跟原有的Schedule里面传的条数保持一致
            Id execBTId = Database.executebatch(new SetOlympusCalendarWorkDayBatch(true),200);
        }
        // if(!Test.isRunningTest() &&IsNeedExecute==true){
        //     //batch里调用下一个batch时,希望跟原有的Schedule里面传的条数保持一致
        //     Id execBTId = Database.executebatch(new SetOlympusCalendarWorkDayBatch(true),200);
        // }
        //2021-03-05  mzy  WLIG-BYHD79  SFDC环境batch合并调查 end
    }