Browse Source

漏提交~

RuoYi 6 years ago
parent
commit
4516d2ef93

+ 6 - 2
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<String, Object> getParams()
     {
+        if (params == null)
+        {
+            params = Maps.newHashMap();
+        }
         return params;
     }
 
@@ -106,5 +111,4 @@ public class BaseEntity implements Serializable
     {
         this.params = params;
     }
-
-}
+}

+ 2 - 2
src/main/resources/templates/system/user/profile/edit.html

@@ -39,11 +39,11 @@
 			<div class="form-group">
 				<label class="col-sm-3 control-label">性别:</label>
 				<div class="col-sm-8">
-					<div class="radio radio-info radio-inline">
+					<div class="radio-box">
 						<input type="radio" id="radio1" th:field="*{sex}" name="sex" value="0">
 						<label for="radio1">男</label>
 					</div>
-					<div class="radio radio-danger radio-inline">
+					<div class="radio-box">
 						<input type="radio" id="radio2" th:field="*{sex}" name="sex" value="1">
 						<label for="radio2">女</label>
 					</div>