Helius
2020-12-28 7ba7366a8c6ce8019339e433b218386645cb5312
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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>