force-app/main/default/classes/updateESignBatch.cls
@@ -1041,7 +1041,9 @@ //循环找到文件id if (fileDeleteIdList.size() > 0) { List<Attachment> attachMentList = [SELECT id, parentId, Body, Name, ContentType,Description from Attachment where parentId = :fileDeleteIdList]; // 2022-02-28 shashiming Apex heap size too large // 去掉Body字段 List<Attachment> attachMentList = [SELECT id, parentId, Name, ContentType,Description from Attachment where parentId = :fileDeleteIdList]; if (attachMentList.size() > 0) { for (Attachment att : attachMentList) {