<?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.xcong.excoin.modules.documentary.mapper.FollowTraderInfoMapper">  
 | 
  
 | 
    <select id="findTraderListInPage" resultType="com.xcong.excoin.modules.documentary.entity.FollowTraderInfoEntity">  
 | 
         select * from follow_trader_info s left join member m on m.id = s.member_id  
 | 
         <where>  
 | 
            <if test="record != null" >  
 | 
                <if test="record.account!=null and record.account!=''">  
 | 
                     and (m.phone = #{record.account} or m.email = #{record.account} or m.invite_id=#{record.account})  
 | 
                </if>  
 | 
                <if test="record.verifyStatus!=null and record.verifyStatus!=''">  
 | 
                    and s.verify_status= #{record.verifyStatus}  
 | 
                </if>  
 | 
            </if>  
 | 
        </where>  
 | 
        order by s.create_time desc      
 | 
    </select>  
 | 
      
 | 
</mapper> 
 |