| | |
| | | public without sharing class BatchSelectRepairPDFDelete { |
| | | public void deletePDF(List<Repair__c> repList){ |
| | | // 20231103 Lightning文件修改 Start |
| | | //修改删除附件,改为删除文件(lightning改造) |
| | | List<String> attachmentNameList = new List<String>(); |
| | | List<Id> parentIdList = new List<Id>(); |
| | |
| | | // if(isGeneratedPDFList.size() > 0){ |
| | | // delete isGeneratedPDFList; |
| | | // } |
| | | // 20231103 Lightning文件修改 End |
| | | } |
| | | |
| | | public void createPDF(List<Repair__c> repList){ |
| | | // 20231103 Lightning文件修改 Start |
| | | // PageReference pdfPage; |
| | | // List<Attachment> attachments = new List<Attachment>(); |
| | | // for(Repair__c re : repList){ |
| | |
| | | if (links.size() > 0) { |
| | | insert links; |
| | | } |
| | | // 20231103 Lightning文件修改 End |
| | | |
| | | } |
| | | |