//create by rentx 2020-11-09 global class AssetUpdateLastContractSchedule implements Schedulable { global void execute(SchedulableContext sc) { // 2021-03-08 mzy WLIG-BYHD79 SFDC环境batch合并调查 start //Database.executeBatch(new AssetUpdateLastContractbatch(),100); Database.executeBatch(new AssetUpdateLastContractbatch(true),100); // 2021-03-08 mzy WLIG-BYHD79 SFDC环境batch合并调查 end //每天0点执行一次 // System.schedule('AssetUpdateLastContractbatch每天执行一次','0 0 0 * * ?', new AssetUpdateLastContractbatch()); } }