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 @@
-
+
-
+