he2802 2 years ago
parent
commit
4be2af7484

+ 3 - 3
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,typeHandler=com.zhongzheng.common.type.EncryptHandler}, '%')
+            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}, '%')
@@ -954,10 +954,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             AND u.realname like concat('%', #{name}, '%')
         </if>
         <if test="idNum != null and idNum !=''">
-            AND u.id_card like concat('%', #{idNum}, '%')
+            AND u.id_card like concat('%', #{idNum,typeHandler=com.zhongzheng.common.type.EncryptHandler}, '%')
         </if>
         <if test="mobile != null and mobile !=''">
-            AND u.telphone like concat('%', #{mobile}, '%')
+            AND u.telphone like concat('%', #{mobile,typeHandler=com.zhongzheng.common.type.EncryptHandler}, '%')
         </if>
     </select>
 

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

@@ -202,7 +202,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             AND u.create_time &lt; #{endTime}
         </if>
         <if test="userKerWord != null and userKerWord != ''" >
-            AND (u.realname like concat('%', #{userKerWord}, '%') OR u.telphone like concat('%', #{userKerWord}, '%') OR u.id_card like concat('%', #{userKerWord}, '%'))
+            AND (u.realname like concat('%', #{userKerWord}, '%') OR u.telphone like concat('%', #{userKerWord,typeHandler=com.zhongzheng.common.type.EncryptHandler}, '%') OR u.id_card like concat('%', #{userKerWord,typeHandler=com.zhongzheng.common.type.EncryptHandler}, '%'))
         </if>
         <if test="nickname != null and nickname != ''" >
             AND u.nickname like concat('%', #{nickname}, '%')
@@ -259,19 +259,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             AND (SELECT COUNT(u.user_id) FROM class_grade_user cgu where 1=1 AND u.status in (1) and cgu.user_id= u.user_id) = 0
         </if>
         <if test="searchKey != null and searchKey != '' and searchType == 0 ">
-            and (u.realname like concat('%', #{searchKey}, '%') or u.id_card like concat('%', #{searchKey}, '%'))
+            and (u.realname like concat('%', #{searchKey}, '%') or u.id_card like concat('%', #{searchKey,typeHandler=com.zhongzheng.common.type.EncryptHandler}, '%'))
         </if>
         <if test="idCards != null and idCards.size()!=0 and searchType == 0" >
             AND u.id_card in
             <foreach collection="idCards" item="item" index="index" open="(" close=")" separator=",">
-                #{item}
+                #{item,typeHandler=com.zhongzheng.common.type.EncryptHandler}
             </foreach>
         </if>
         <if test="searchType == 1" >
-            and (u.realname like concat('%', #{searchKey}, '%') or u.id_card like concat('%', #{searchKey}, '%') or
+            and (u.realname like concat('%', #{searchKey}, '%') or u.id_card like concat('%', #{searchKey,typeHandler=com.zhongzheng.common.type.EncryptHandler}, '%') or
             u.id_card in
             <foreach collection="idCards" item="item" index="index" open="(" close=")" separator=",">
-                #{item}
+                #{item,typeHandler=com.zhongzheng.common.type.EncryptHandler}
             </foreach>)
         </if>
         <if test="hasBindWx != null and hasBindWx == 1 ">
@@ -443,7 +443,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         FROM
             `user`
         WHERE
-            id_card = #{idNum} AND status = 1
+            id_card = #{idNum,typeHandler=com.zhongzheng.common.type.EncryptHandler} AND status = 1
     </select>
 
     <select id="queryUserByIdNumTenant" parameterType="map" resultMap="UserResult">
@@ -452,7 +452,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         FROM
             `user`
         WHERE
-            id_card = #{idNum}
+            id_card = #{idNum,typeHandler=com.zhongzheng.common.type.EncryptHandler}
           AND status = 1 AND tenant_id = #{tenantId}
     </select>
 

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

@@ -1464,7 +1464,7 @@
             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}, '%')
+            AND u.telphone like concat('%', #{phone,typeHandler=com.zhongzheng.common.type.EncryptHandler}, '%')
         </if>
         <if test="purchaseStatus != null and purchaseStatus !='' ">
             AND ur.buy_course = #{purchaseStatus}

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

@@ -178,14 +178,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="idCards != null and idCards.size()!=0 and searchType == 0" >
             AND u.id_card in
             <foreach collection="idCards" item="item" index="index" open="(" close=")" separator=",">
-                #{item}
+                #{item,typeHandler=com.zhongzheng.common.type.EncryptHandler}
             </foreach>
         </if>
         <if test="searchType == 1" >
             and (u.realname like concat('%', #{searchKey}, '%') or u.id_card like concat('%', #{searchKey}, '%') or
             u.id_card in
             <foreach collection="idCards" item="item" index="index" open="(" close=")" separator=",">
-                #{item}
+                #{item,typeHandler=com.zhongzheng.common.type.EncryptHandler}
             </foreach>)
         </if>
         <if test="userId != null and userId != '' ">