global with sharing class DealerConsumableManageBatchSchedule implements Schedulable{ //每天跑前一天的数据 global void execute(SchedulableContext sc){ Date today = Date.today().addDays(-1); Id batjobId = Database.executeBatch(new DealerConsumableManageBatch1(today,today,true), 200); } }