From 62f1b53483af1719e38b0d64eb7b21be968c9897 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Mon, 27 Aug 2018 09:00:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BC=8F=E6=8F=90=E4=BA=A4~?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/framework/web/domain/BaseEntity.java | 8 ++++++-- .../resources/templates/system/user/profile/edit.html | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/ruoyi/framework/web/domain/BaseEntity.java b/src/main/java/com/ruoyi/framework/web/domain/BaseEntity.java index 010822f8..01d2925c 100644 --- a/src/main/java/com/ruoyi/framework/web/domain/BaseEntity.java +++ b/src/main/java/com/ruoyi/framework/web/domain/BaseEntity.java @@ -4,6 +4,7 @@ import java.io.Serializable; import java.util.Date; import java.util.Map; import com.fasterxml.jackson.annotation.JsonFormat; +import com.google.common.collect.Maps; /** * Entity基类 @@ -99,6 +100,10 @@ public class BaseEntity implements Serializable public Map getParams() { + if (params == null) + { + params = Maps.newHashMap(); + } return params; } @@ -106,5 +111,4 @@ public class BaseEntity implements Serializable { this.params = params; } - -} +} \ No newline at end of file diff --git a/src/main/resources/templates/system/user/profile/edit.html b/src/main/resources/templates/system/user/profile/edit.html index 8e64f84e..cb07bfbd 100644 --- a/src/main/resources/templates/system/user/profile/edit.html +++ b/src/main/resources/templates/system/user/profile/edit.html @@ -39,11 +39,11 @@
-
+
-
+