张宇恒
2022-12-23 ec47f5ab5923a315bf22e0df5af7371e9668589e
1
2
3
4
5
6
7
8
9
10
11
12
/**
Database.executeBatch(new UpdateRentalApplyBatch());
system.schedule('UpdateRentalApplyBatchSchedule01','0 30 1 * * ? 2015-2035', new UpdateRentalApplyBatchSchedule());
*/
global class UpdateRentalApplyBatchSchedule implements Schedulable {
 
    // 每个小时的15,30,45,00分执行,即15分钟执行一次
    global void execute(SchedulableContext SC) {
        // 10备品借出申请历史ずつ処理する
        Id execBTId = Database.executeBatch(new UpdateRentalApplyBatch(), 200);
    }
}