force-app/main/default/classes/MaintenanceUpdateProductHandler.cls
@@ -73,8 +73,10 @@ } } for(String id:mpdIds){ // 20231103 chenjingwu Lightning文件修改 Start List<ContentDocumentLink> linksinfo = [select Id from ContentDocumentLink where LinkedEntityId =: id]; // List<Attachment> attachmentinfo = [SELECT Id, Name,OwnerId FROM Attachment WHERE parentid =:mpdIds ]; // 20231103 chenjingwu Lightning文件修改 End if(linksinfo.size() ==0){ attachmentSize = true; }