/** 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); } }