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); }