|
@@ -695,4 +695,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND o.tenant_id = #{tenantId}
|
|
|
</select>
|
|
|
|
|
|
+ <select id="dangAnList" parameterType="com.zhongzheng.modules.user.bo.UserQueryBo" resultMap="UserResult">
|
|
|
+ SELECT * from `user` u where 1=1
|
|
|
+ <if test="telphone != null and 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,typeHandler=com.zhongzheng.common.type.EncryptHandler}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="realname != null and realname != ''" >
|
|
|
+ AND u.realname like concat('%', #{realname}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="companyName != null and companyName != ''" >
|
|
|
+ AND u.company_name like concat('%', #{companyName}, '%')
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|