he2802 2 rokov pred
rodič
commit
bad483a563

+ 3 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/distribution/domain/DistributionSeller.java

@@ -1,6 +1,7 @@
 package com.zhongzheng.modules.distribution.domain;
 
 import com.baomidou.mybatisplus.annotation.*;
+import com.zhongzheng.common.type.EncryptHandler;
 import lombok.Data;
 import lombok.NoArgsConstructor;
 import lombok.experimental.Accessors;
@@ -29,8 +30,10 @@ private static final long serialVersionUID=1L;
     /** 真实姓名 */
     private String realname;
     /** 身份证号 */
+    @TableField(typeHandler = EncryptHandler.class)
     private String idCard;
     /** 手机号码 */
+    @TableField(typeHandler = EncryptHandler.class)
     private String telphone;
     /** 1有效 0禁用 */
     private Integer status;

+ 2 - 2
zhongzheng-system/src/main/resources/mapper/modules/distribution/DistributionSellerMapper.xml

@@ -7,8 +7,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <resultMap type="com.zhongzheng.modules.distribution.domain.DistributionSeller" id="DistributionSellerResult">
         <result property="sellerId" column="seller_id"/>
         <result property="realname" column="realname"/>
-        <result property="idCard" column="id_card"/>
-        <result property="telphone" column="telphone"/>
+        <result property="idCard" column="id_card" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="status" column="status"/>
         <result property="createTime" column="create_time"/>
         <result property="updateTime" column="update_time"/>