高章伟
2022-03-18 a0bc3e3af59aed35334bdc38256a7a1dfe8aecf3
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);
    }
}