19626
2023-10-31 fd9df05c48c09b4d7f39a3b401882bda226dedea
force-app/main/default/classes/BatchSelectRepairPDFDelete.cls
@@ -1,5 +1,6 @@
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>();
@@ -37,9 +38,11 @@
        // 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){       
@@ -98,6 +101,7 @@
        if (links.size() > 0) {
            insert links;
        }
        // 20231103   Lightning文件修改 End
    }