global class TaskOldDataUpdateSchedule implements Schedulable { global void execute(SchedulableContext sc) { Id execBTId = database.executebatch(new BathUpdateSobject('task__c')); // Id execBTId = database.executebatch(new BathUpdateSobject('task__c','assignee__r.IsActive = false AND taskStatus__c NOT IN (\'03 完成\',\'07 未执行\')')); } }