public without sharing class RepairOrderHandler extends Oly_TriggerHandler {
    private Map<Id, Repair__c> newMap;
    private Map<Id, Repair__c> oldMap;
    private List<Repair__c> newList;
    private List<Repair__c> oldList;
    public RepairOrderHandler() {
        this.newMap = (Map<Id, Repair__c>) Trigger.newMap;
        this.oldMap = (Map<Id, Repair__c>) Trigger.oldMap;
        this.newList = (List<Repair__c>) Trigger.new;
        this.oldList = (List<Repair__c>) Trigger.old;
    }
	protected override void afterInsert() {
		RepairInsert();
	}
    public void RepairInsert(){
        List<RepairSubOrder__c> repairSubOrderList = new List<RepairSubOrder__c>();
    	for (Repair__c repair : newList) {
    		if (Trigger.isInsert) {
    		    if (String.isNotBlank(repair.RepairSubOrder__c)) {
    		        RepairSubOrder__c rso = new RepairSubOrder__c();
    		        rso.Id = repair.RepairSubOrder__c;
    		        rso.SFDCRepairApplyDate__c = Date.today();
    		        repairSubOrderList.add(rso);
    		    }
    		}
    	}
    	if (repairSubOrderList.size() > 0) {
    	    update repairSubOrderList;
    	}
    }
}