he2802 2 년 전
부모
커밋
2e4f175bdb

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

@@ -143,7 +143,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             and e.exam_period like concat('%',#{examPeriod},'%')
         </if>
         <if test="idCard != null and idCard != ''">
-            AND u.id_card like concat('%',#{idCard},'%')
+            AND u.id_card like concat('%',#{idCard,typeHandler=com.zhongzheng.common.type.EncryptHandler},'%')
         </if>
         <if test="realname != null and realname != ''">
             AND u.realname like concat('%',#{realname},'%')

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

@@ -458,7 +458,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             AND u.realname like concat('%', #{realname}, '%')
         </if>
         <if test="telphone != null and telphone != ''">
-            AND u.telphone like concat('%', #{telphone}, '%')
+            AND u.telphone like concat('%', #{telphone,typeHandler=com.zhongzheng.common.type.EncryptHandler}, '%')
         </if>
         <if test="companyName != null and companyName != ''">
             AND u.company_name like concat('%', #{companyName}, '%')

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

@@ -1179,7 +1179,7 @@
         FROM
             `user`
         WHERE
-            id_card = #{idCard} and user_id != #{userId} and `status` = 1
+            id_card = #{idCard,typeHandler=com.zhongzheng.common.type.EncryptHandler} and user_id != #{userId} and `status` = 1
     </select>
 
     <select id="selectUserCertificate" parameterType="com.zhongzheng.modules.grade.bo.ClassGradeUserQueryBo"

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

@@ -208,10 +208,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             AND u.nickname like concat('%', #{nickname}, '%')
         </if>
         <if test="telphone != null and telphone != ''" >
-            AND u.telphone like concat('%', #{telphone}, '%')
+            AND u.telphone like concat('%', #{telphone,typeHandler=com.zhongzheng.common.type.EncryptHandler}, '%')
         </if>
         <if test="idCard != null and idCard != ''" >
-            AND u.id_card like concat('%', #{idCard}, '%')
+            AND u.id_card like concat('%', #{idCard,typeHandler=com.zhongzheng.common.type.EncryptHandler}, '%')
         </if>
         <if test="realname != null and realname != ''" >
             AND u.realname like concat('%', #{realname}, '%')
@@ -424,7 +424,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         FROM
             `user`
         WHERE
-            telphone = #{telphone}
+            telphone = #{telphone,typeHandler=com.zhongzheng.common.type.EncryptHandler}
           AND status = 1 AND tenant_id = #{tenantId}
     </select>
 
@@ -434,7 +434,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         FROM
             `user`
         WHERE
-            telphone = #{telphone} AND status = 1
+            telphone = #{telphone,typeHandler=com.zhongzheng.common.type.EncryptHandler} AND status = 1
     </select>
 
     <select id="getUserByIdNumNotTenant" parameterType="java.lang.String" resultType="com.zhongzheng.modules.user.domain.User">

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

@@ -1461,7 +1461,7 @@
             AND u.realname like concat('%', #{userName}, '%')
         </if>
         <if test="idCard != null and idCard !='' ">
-            AND u.id_card like concat('%', #{idCard}, '%')
+            AND u.id_card like concat('%', #{idCard,typeHandler=com.zhongzheng.common.type.EncryptHandler}, '%')
         </if>
         <if test="phone != null and phone !='' ">
             AND u.telphone like concat('%', #{phone}, '%')

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

@@ -262,7 +262,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </select>
 
     <select id="selectUserId" parameterType="map"  resultType="Long">
-        SELECT u.user_id FROM `user` u where u.realname=#{userName} and u.id_card=#{idCard}
+        SELECT u.user_id FROM `user` u where u.realname=#{userName} and u.id_card=#{idCard,typeHandler=com.zhongzheng.common.type.EncryptHandler}
     </select>
 
     <select id="selectBeforeId" parameterType="map"  resultType="Long">