|
@@ -202,7 +202,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND u.create_time < #{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>
|
|
|
|