GWY
2022-05-21 a3460549533111815e7f73d6cef601a58031525d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
system.schedule('UpdateTotalCostPriceSchedule1','0 5 9-23 * * ? 2015-2035', new UpdateTotalCostPriceSchedule());
system.schedule('UpdateTotalCostPriceSchedule2','0 20 9-23 * * ? 2015-2035', new UpdateTotalCostPriceSchedule());
system.schedule('UpdateTotalCostPriceSchedule3','0 35 9-23 * * ? 2015-2035', new UpdateTotalCostPriceSchedule());
system.schedule('UpdateTotalCostPriceSchedule4','0 50 9-23 * * ? 2015-2035', new UpdateTotalCostPriceSchedule());
*/
global class UpdateTotalCostPriceSchedule implements Schedulable {
 // 每个小时的5,20,35,50分执行,即15分钟执行一次
    global void execute(SchedulableContext SC) {
       UpdateTotalCostPriceSetTextBatch u = new UpdateTotalCostPriceSetTextBatch();  
       UpdateTotalCostPriceSetTextInquiryBatch o = new UpdateTotalCostPriceSetTextInquiryBatch();  
       Id execBTId = Database.executeBatch(u, 100);  
        Id execBTId2 = Database.executeBatch(o, 100);               
        }
}