| | |
| | | setStatusChange(); |
| | | //提交审批之后更新字段 |
| | | updateExaminePeople(); |
| | | //附件更新 |
| | | updateAttachment(); |
| | | } |
| | | |
| | | protected override void afterUpdate(){ |
| | |
| | | ra.Report_Date__c = todayTemp; |
| | | } |
| | | |
| | | Map<Id,Repair__c> repairMap = new Map<Id,Repair__c>([SELECT Id,Name,Repair_Detail__c,InspectionFailureCause__c,SerialNumber__c,Delivered_Product__c,(select Id from reparirAgain01__r) from Repair__c where id in :repairSet]); |
| | | Map<Id,Repair__c> repairMap = new Map<Id,Repair__c>([SELECT Id,Name,Repair_Detail__c,InspectionFailureCause__c,SerialNumber__c,Delivered_Product__c,Incharge_Staff__c,(select Id from reparirAgain01__r) from Repair__c where id in :repairSet]); |
| | | |
| | | System.debug('repairMap========='+repairMap); |
| | | for(RepairAgainAn__c ra : newList){ |
| | |
| | | repairList.add(tempRepair); |
| | | } |
| | | } |
| | | |
| | | public void updateAttachment(){ |
| | | for(RepairAgainAn__c ram : newList){ |
| | | String pid = ram.Id; |
| | | |
| | | String sql = 'SELECT Name,Body,ContentType from Attachment where ParentId =\'' + pid + '\''; |
| | | |
| | | |
| | | Attachment att = Database.query(sql); |
| | | |
| | | System.debug('bName====='+att.Body); |
| | | } |
| | | } |
| | | } |