Parcourir la source

登录用户信息

he2802 il y a 4 ans
Parent
commit
647eb4ac38

+ 4 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/bo/UserEditBo.java

@@ -132,6 +132,10 @@ public class UserEditBo {
     @ApiModelProperty("政治面貌")
     private String politic;
 
+    /** 邮箱 */
+    @ApiModelProperty("邮箱")
+    private String email;
+
     public void setNull(){
         this.setTelphone(null);
         this.setIdCard(null);

+ 3 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/domain/User.java

@@ -132,4 +132,7 @@ private static final long serialVersionUID=1L;
 
     /** 政治面貌 */
     private String politic;
+
+    /** 邮箱 */
+    private String email;
 }

+ 8 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/vo/UserVo.java

@@ -141,9 +141,16 @@ public class UserVo {
 	@Excel(name = "政治面貌")
 	@ApiModelProperty("政治面貌")
 	private String politic;
+	/** 邮箱 */
+	@Excel(name = "邮箱")
+	@ApiModelProperty("邮箱")
+	private String email;
 
 	public void setNull(){
 		this.setOpenId(null);
-		this.setTelphone(TelPhoneUtils.hideTelPhone(this.getTelphone()));
+		if(this.getTelphone()!=null){
+			this.setTelphone(TelPhoneUtils.hideTelPhone(this.getTelphone()));
+		}
+
 	}
 }

+ 1 - 0
zhongzheng-system/src/main/resources/mapper/modules/user/UserMapper.xml

@@ -42,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="houseDistrict" column="house_district"/>
         <result property="oneInchPhotos" column="one_inch_photos"/>
         <result property="politic" column="politic"/>
+        <result property="email" column="email"/>
     </resultMap>