From 552417c161a5b6115de6d7313c73ba84bc4d6149 Mon Sep 17 00:00:00 2001 From: zhengjie <201507802@qq.com> Date: Thu, 26 Nov 2020 19:36:45 +0800 Subject: [PATCH 01/10] =?UTF-8?q?[=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96](v2?= =?UTF-8?q?.6)=EF=BC=9Aupdate=20eladmin.sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close https://github.com/elunez/eladmin/issues/532 --- sql/eladmin.sql | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/sql/eladmin.sql b/sql/eladmin.sql index 51d44404..601cfc95 100644 --- a/sql/eladmin.sql +++ b/sql/eladmin.sql @@ -510,7 +510,7 @@ CREATE TABLE `sys_role` ( -- ---------------------------- BEGIN; INSERT INTO `sys_role` VALUES (1, '超级管理员', 1, '-', '全部', NULL, 'admin', '2018-11-23 11:04:37', '2020-08-06 16:10:24'); -INSERT INTO `sys_role` VALUES (2, '普通用户', 2, '-', '自定义', NULL, 'admin', '2018-11-23 13:09:06', '2020-09-05 10:45:12'); +INSERT INTO `sys_role` VALUES (2, '普通用户', 2, '-', '本级', NULL, 'admin', '2018-11-23 13:09:06', '2020-09-05 10:45:12'); COMMIT; -- ---------------------------- @@ -524,13 +524,6 @@ CREATE TABLE `sys_roles_depts` ( KEY `FK7qg6itn5ajdoa9h9o78v9ksur` (`dept_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='角色部门关联'; --- ---------------------------- --- Records of sys_roles_depts --- ---------------------------- -BEGIN; -INSERT INTO `sys_roles_depts` VALUES (2, 6); -COMMIT; - -- ---------------------------- -- Table structure for sys_roles_menus -- ---------------------------- @@ -829,4 +822,4 @@ CREATE TABLE `tool_qiniu_content` ( BEGIN; COMMIT; -SET FOREIGN_KEY_CHECKS = 1; +SET FOREIGN_KEY_CHECKS = 1; \ No newline at end of file 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 02/10] =?UTF-8?q?[=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96](v2?= =?UTF-8?q?.6)=EF=BC=9Abug=20fix=20close=20https://github.com/elunez/eladm?= =?UTF-8?q?in/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 04/10] =?UTF-8?q?[=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96](v2?= =?UTF-8?q?.6)=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 05/10] =?UTF-8?q?[=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96](v2?= =?UTF-8?q?.6)=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 06/10] =?UTF-8?q?[=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96](v2?= =?UTF-8?q?.6)=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 @@ - +