| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?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 up.id,up.ry_id,up.ry_no,up.id_card,up.ry_nick_name as name ,up.phone,up.platform_id,up.status,up.create_time from jy_user up
- where up.rec_status = 'A'
- <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>
- UNION all SELECT pw.id,null,null,null,name ,null,pw.platform_id,null,pw.create_time from jy_platform_user_wait pw
- WHERE pw.rec_status = 'A'
- <if test="param.name != null and param.name !=''">
- and pw.name like concat ('%',#{param.name},'%')
- </if>
- <if test="param.phone != null and param.phone !=''">
- and pw.rec_status = 'AA'
- </if>
- <if test="param.idCard != null and param.idCard !=''">
- and pw.rec_status = 'AA'
- </if>
- <if test="param.ryNo != null and param.ryNo !=''">
- and pw.rec_status = 'AA'
- </if>
- <if test="param.platformId != null ">
- and pw.platform_id = #{param.platformId}
- </if>
- order by create_time desc,id desc
- </select>
- <select id="queryByKey" resultType="com.fdkankan.manage.vo.JyUserPlatform">
- select id,id_card,ry_nick_name as name ,phone,platform_id,status,create_time,sys_user_id from jy_user where rec_status = 'A' and status = 1
- <if test="queryKey != null and queryKey !=''">
- and ( ry_nick_name = #{queryKey} or phone = #{queryKey} or id_card = #{queryKey} )
- </if>
- </select>
- </mapper>
|