李彤
2022-03-31 38f646071ef8012e4229a6d5519a66c242c45718
1
2
3
4
5
6
7
8
9
10
11
/**
Database.executeBatch(new UpdateRentalApplyEquipmentSetBatch());
system.schedule('UpdateRentalApplyEquipmentSetSchedule01','0 20 1 * * ? 2015-2035', new UpdateRentalApplyEquipmentSetSchedule());
*/
global class UpdateRentalApplyEquipmentSetSchedule implements Schedulable {
    // 每个小时的5,20,35,50分执行,即15分钟执行一次
    global void execute(SchedulableContext SC) {
        // 10备品借出申请历史ずつ処理する
        Id execBTId = Database.executeBatch(new UpdateRentalApplyEquipmentSetBatch(), 10);
    }
}