he2802 2 жил өмнө
parent
commit
5c1579d6cd

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

@@ -47,6 +47,7 @@ private static final long serialVersionUID=1L;
     private String idCard;
 
     /** 手机号码 */
+    @TableField(typeHandler = EncryptHandler.class)
     private String telphone;
 
     /** 用户等级 */

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/base/UserProfileMapper.xml

@@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="changeStatus" column="change_status"/>
         <result property="realname" column="realname"/>
         <result property="userAccount" column="user_account"/>
-        <result property="telphone" column="telphone"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="idCard" column="id_card" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="goodsName" column="goods_name"/>
         <result property="goodsCode" column="goods_code"/>

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/exam/ExamArrangementStudentMapper.xml

@@ -16,7 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="realname" column="realname"/>
         <result property="sex" column="sex"/>
         <result property="idCard" column="id_card" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
-        <result property="telphone" column="telphone"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="userLevel" column="user_level"/>
         <result property="userBirth" column="user_birth"/>
         <result property="eduLevel" column="edu_level"/>

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeMapper.xml

@@ -139,7 +139,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="studentCode" column="user_account"/>
         <result property="realname" column="realname"/>
         <result property="idCard" column="id_card" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
-        <result property="telPhone" column="telphone"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="userStatus" column="user_status"/>
         <result property="status" column="status"/>
         <result property="classHours" column="class_hours"/>

+ 3 - 3
zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeUserMapper.xml

@@ -42,7 +42,7 @@
         <result property="realName" column="realname"/>
         <result property="idCard" column="id_card" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="createBy" column="create_by"/>
-        <result property="telPhone" column="telphone"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="changeGrade" column="change_grade"/>
         <result property="interfacePushId" column="interface_push_id"/>
         <result property="classStatus" column="class_status"/>
@@ -92,7 +92,7 @@
         <result property="studentCode" column="user_account"/>
         <result property="realName" column="realname"/>
         <result property="idCard" column="id_card" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
-        <result property="telPhone" column="telphone"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="status" column="status"/>
         <result property="classHours" column="class_hours"/>
         <result property="periodStatus" column="period_status"/>
@@ -128,7 +128,7 @@
         <result property="idCardImg1" column="id_card_img1"/>
         <result property="idCardImg2" column="id_card_img2"/>
         <result property="idCard" column="id_card" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
-        <result property="telPhone" column="telphone"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="secAllNum" column="sec_all_num"/>
         <result property="examNum" column="exam_num"/>
         <result property="recordNum" column="record_num"/>

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/inform/InformUserMapper.xml

@@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="receiptStatus" column="receipt_status"/>
         <result property="realName" column="realname"/>
         <result property="idCard" column="id_card" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
-        <result property="telPhone" column="telphone"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="orderGoodsId" column="order_goods_id"/>
     </resultMap>
 

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/order/OrderGoodsRefundMapper.xml

@@ -61,7 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="goodsReceived" column="goods_received"/>
         <result property="payStatus" column="pay_status"/>
         <result property="idCard" column="id_card" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
-        <result property="telphone" column="telphone"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="year" column="year"/>
         <result property="refundTime" column="refund_time"/>
     </resultMap>

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/order/OrderMapper.xml

@@ -64,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="goodsRealPrice" column="goods_real_price"/>
 
         <result property="idCard" column="id_card" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
-        <result property="telphone" column="telphone"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="realname" column="realname"/>
 
         <result property="goodsReceived" column="goods_received"/>

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

@@ -11,7 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="realname" column="realname"/>
         <result property="sex" column="sex"/>
         <result property="idCard" column="id_card" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
-        <result property="telphone" column="telphone"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="userLevel" column="user_level"/>
         <result property="userBirth" column="user_birth"/>
         <result property="eduLevel" column="edu_level"/>
@@ -70,7 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <resultMap type="com.zhongzheng.modules.user.vo.UserStudyRecordVo" id="StudyRecordResult">
-        <result property="telphone" column="telphone"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="realname" column="realname"/>
         <result property="endTime" column="end_time"/>
         <result property="startTime" column="start_time"/>

+ 3 - 3
zhongzheng-system/src/main/resources/mapper/modules/user/UserSubscribeMapper.xml

@@ -91,7 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="roomAddress" column="room_address"/>
         <result property="syncResult" column="sync_result"/>
         <result property="roomName" column="room_name"/>
-        <result property="telphone" column="telphone"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="idCardImg1" column="id_card_img1"/>
         <result property="idCardImg2" column="id_card_img2"/>
         <result property="centerId" column="center_id"/>
@@ -110,11 +110,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <resultMap type="com.zhongzheng.modules.user.vo.UserVo" id="UserVoResult">
-        <result property="telphone" column="telphone"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="realname" column="realname"/>
         <result property="job" column="job"/>
         <result property="sex" column="sex"/>
-        <result property="telphone" column="telphone"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="idCard" column="id_card" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="eduLevel" column="edu_level"/>
         <result property="oneInchPhotos" column="one_inch_photos"/>

+ 2 - 2
zhongzheng-system/src/main/resources/mapper/modules/user/UserUpdateMapper.xml

@@ -9,7 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="userId" column="user_id"/>
         <result property="realname" column="realname"/>
         <result property="idCard" column="id_card" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
-        <result property="telphone" column="telphone"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="createTime" column="create_time"/>
         <result property="updateTime" column="update_time"/>
         <result property="modifierName" column="modifier_name"/>
@@ -20,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="userId" column="user_id"/>
         <result property="realname" column="realname"/>
         <result property="idCard" column="id_card" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
-        <result property="telphone" column="telphone"/>
+        <result property="telphone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
         <result property="nowRealname" column="now_realname"/>
         <result property="modifierName" column="modifier_name"/>
     </resultMap>