From 5d850b59d5a5da6cea9d8e7e9972489ddd70c8b4 Mon Sep 17 00:00:00 2001 From: Parker Date: Mon, 14 Dec 2020 20:54:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=AF=BC=E5=85=A5OOM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/opsli/core/base/concroller/BaseRestController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/base/concroller/BaseRestController.java b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/base/concroller/BaseRestController.java index 9ff468c..a8b6454 100644 --- a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/base/concroller/BaseRestController.java +++ b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/base/concroller/BaseRestController.java @@ -213,6 +213,8 @@ public abstract class BaseRestController excelMaxCount){ String maxError = StrUtil.format(CoreMsg.EXCEL_HANDLE_MAX.getMessage(), modelList.size(), excelMaxCount); + // 清空 list + modelList.clear(); // 超出最大导出数量 throw new ExcelPluginException(CoreMsg.EXCEL_HANDLE_MAX.getCode(), maxError); }