123456789101112131415161718192021222324252627282930313233343536373839 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.fdkankan.manage.mapper.IJyUserPlatformMapper">
- <select id="pageList" resultType="com.fdkankan.manage.vo.request.JyUserPlatformVo">
- select * from jy_user up
- left join jy_platform jp on up.platform_id = jp.id
- where up.rec_status = 'A' and jp.rec_status = 'A' and jp.status !=0 and up.id_card != jp.id_card
- <if test="param.name != null and param.name !=''">
- and up.ry_nick_name like concat ('%',#{param.name},'%')
- </if>
- <if test="param.phone != null and param.phone !=''">
- and up.phone like concat ('%',#{param.phone},'%')
- </if>
- <if test="param.idCard != null and param.idCard !=''">
- and up.id_card like concat ('%',#{param.idCard},'%')
- </if>
- <if test="param.ryNo != null and param.ryNo !=''">
- and up.ry_no like concat ('%',#{param.ryNo},'%')
- </if>
- <if test="param.platformId != null ">
- and up.platform_id = #{param.platformId}
- </if>
- order by up.id desc
- </select>
- <select id="queryByKey" resultType="com.fdkankan.manage.vo.JyUserPlatform">
- select * from jy_user where rec_status = 'A'
- <if test="queryKey != null and queryKey !=''">
- and ( ry_nick_name = #{queryKey} or phone = #{queryKey} or id_card = #{queryKey} )
- </if>
- <if test="noInIds != null and noInIds.size >0">
- and id_card not in
- <foreach collection="noInIds" item="idCard" open="(" close=")" separator=",">
- #{idCard}
- </foreach>
- </if>
- </select>
- </mapper>
|