| | |
| | | } |
| | | |
| | | try{ |
| | | // 20231103 陈京武 Lightning文件修改 Start |
| | | List < ContentVersion > newAttList = AttachmentFiledDownload(endpoint, parentId, attachmentName); |
| | | |
| | | // if (newAttList.size() > 0) { |
| | |
| | | // } |
| | | // insert newAttList; |
| | | // } |
| | | // 20231103 陈京武 Lightning文件修改 End |
| | | if (updateCaseList.size() > 0) { |
| | | update updateCaseList; |
| | | } |
| | |
| | | } |
| | | // } |
| | | } |
| | | |
| | | // 20231103 陈京武 Lightning文件修改 Start |
| | | global static List < ContentVersion > AttachmentFiledDownload(String endpoint, String parentId, String attachmentName) { |
| | | List<ContentDocumentLink> linkList = [ |
| | | select |
| | |
| | | link.Visibility = 'AllUsers'; |
| | | insert link; |
| | | } |
| | | |
| | | // 20231103 陈京武 Lightning文件修改 End |
| | | |
| | | |
| | | // system.debug('responseBody503--->'+bodyAsBlob); |