xiaoyong931011
2022-03-16 8258ad8685784f421d62acfe6b9992c9935e3ebd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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.zhiya.mapper.ZhiyaMapper">
 
     <select id="selectZhiyaListInPage" resultType="com.xcong.excoin.modules.zhiya.entity.ZhiYaEntity">
        SELECT
            a.*,
               b.phone phone,
               b.invite_id inviteId
        FROM
         zhi_ya a
         inner join member b on a.member_id = b.id
        <where>
            <if test="record != null" >
                <if test="record.account!=null and record.account!=''">
                    and (b.phone like CONCAT('%',#{record.account},'%')
                             or b.email like CONCAT('%',#{record.account},'%')
                             or b.invite_id like CONCAT('%',#{record.account},'%'))
                </if>
            </if>
        </where>
        order by a.create_time desc
    </select>
    
</mapper>