From eb3519036ffe31ad787ed9f7f1464d232e4615a8 Mon Sep 17 00:00:00 2001 From: zhengjie <201507802@qq.com> Date: Sat, 12 Dec 2020 21:05:42 +0800 Subject: [PATCH 1/9] =?UTF-8?q?[=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96](v2.6?= =?UTF-8?q?)=EF=BC=9Abug=20fix=20close=20https://github.com/elunez/eladmin?= =?UTF-8?q?/issues/504?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/template/generator/front/index.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eladmin-system/src/main/resources/template/generator/front/index.ftl b/eladmin-system/src/main/resources/template/generator/front/index.ftl index 9307821a..f16209f2 100644 --- a/eladmin-system/src/main/resources/template/generator/front/index.ftl +++ b/eladmin-system/src/main/resources/template/generator/front/index.ftl @@ -97,7 +97,7 @@ - + - <#elseif column.columnType != 'Timestamp'> - <#else> - - - + From 264b3cb79d65899fe92e273d148d53589c9dc25f Mon Sep 17 00:00:00 2001 From: zhengjie <201507802@qq.com> Date: Sat, 12 Dec 2020 21:25:56 +0800 Subject: [PATCH 3/9] =?UTF-8?q?[=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96](v2.6?= =?UTF-8?q?)=EF=BC=9Abug=E4=BF=AE=E5=A4=8D=EF=BC=8C=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=8C=E6=97=A5=E6=9C=9F=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96=E5=90=8E=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close https://github.com/elunez/eladmin/issues/514 --- .../src/main/java/me/zhengjie/config/ConfigurerAdapter.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/eladmin-system/src/main/java/me/zhengjie/config/ConfigurerAdapter.java b/eladmin-system/src/main/java/me/zhengjie/config/ConfigurerAdapter.java index 3f9a98ed..643b75df 100644 --- a/eladmin-system/src/main/java/me/zhengjie/config/ConfigurerAdapter.java +++ b/eladmin-system/src/main/java/me/zhengjie/config/ConfigurerAdapter.java @@ -28,8 +28,6 @@ import org.springframework.web.filter.CorsFilter; import org.springframework.web.servlet.config.annotation.EnableWebMvc; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; - -import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; From 76b600eeccc40a561d1a9278134ab9a806f2f9e3 Mon Sep 17 00:00:00 2001 From: zhengjie <201507802@qq.com> Date: Sat, 12 Dec 2020 22:54:07 +0800 Subject: [PATCH 4/9] =?UTF-8?q?[=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96](v2.6?= =?UTF-8?q?)=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=87=BA=20excel=20?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close https://github.com/elunez/eladmin/issues/531 --- eladmin-common/src/main/java/me/zhengjie/utils/FileUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eladmin-common/src/main/java/me/zhengjie/utils/FileUtil.java b/eladmin-common/src/main/java/me/zhengjie/utils/FileUtil.java index 05bf2bb4..ee0a66b6 100644 --- a/eladmin-common/src/main/java/me/zhengjie/utils/FileUtil.java +++ b/eladmin-common/src/main/java/me/zhengjie/utils/FileUtil.java @@ -248,7 +248,8 @@ public class FileUtil extends cn.hutool.core.io.FileUtil { SXSSFCell currentCell = currentRow.getCell(columnNum); if (currentCell.getCellTypeEnum() == CellType.STRING) { int length = currentCell.getStringCellValue().getBytes().length; - if (columnWidth < length) { + // 如果长度大于最大值 65280,那就取 length + if (columnWidth < length || (columnWidth * 256 > 65280)) { columnWidth = length; } } From 112c7b3e4dc3887625749096746644764a8568e3 Mon Sep 17 00:00:00 2001 From: zhengjie <201507802@qq.com> Date: Sat, 12 Dec 2020 23:04:39 +0800 Subject: [PATCH 5/9] =?UTF-8?q?[=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96](v2.6?= =?UTF-8?q?)=EF=BC=9Aupdate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/template/generator/front/index.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eladmin-system/src/main/resources/template/generator/front/index.ftl b/eladmin-system/src/main/resources/template/generator/front/index.ftl index 0041afeb..cd4d17c9 100644 --- a/eladmin-system/src/main/resources/template/generator/front/index.ftl +++ b/eladmin-system/src/main/resources/template/generator/front/index.ftl @@ -91,7 +91,7 @@ - +