1234567891011121314151617181920212223242526272829303132 |
- <?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>
- order by up.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 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>
|