From 03131f080a89e8918e4c94965abada558695c016 Mon Sep 17 00:00:00 2001 From: "Emil.Zhang" Date: Sat, 6 May 2023 11:48:53 +0800 Subject: [PATCH] =?UTF-8?q?fixed(=E5=88=87=E6=8D=A2=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E4=B8=8D=E6=AD=A3=E7=A1=AE):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.提交时,修改了切换条件做测试,未撤回 --- .../src/main/java/com/ruoyi/common/excel/ExcelDownHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/excel/ExcelDownHandler.java b/ruoyi-common/src/main/java/com/ruoyi/common/excel/ExcelDownHandler.java index a721c9542..4b7ab155b 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/excel/ExcelDownHandler.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/excel/ExcelDownHandler.java @@ -131,7 +131,7 @@ public class ExcelDownHandler implements SheetWriteHandler { // 如果指定了列下标,以指定的为主 index = fields[i].getDeclaredAnnotation(ExcelProperty.class).index(); } - if (options.size() > 2) { + if (options.size() > 20) { // 这里限制如果可选项大于20,则使用额外表形式 dropDownWithSheet(helper, workbook, sheet, index, options); } else {