liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
1
2
3
4
5
6
7
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);
    }
}