xiaoyong931011
2021-09-16 1b6f7f2b20c45a65e87e0a3c3089079cc237cd73
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
26
<?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="cc.mrbird.febs.mall.mapper.MallMemberMapper">
 
    <select id="selectMallMemberListInPage" resultType="cc.mrbird.febs.mall.entity.MallMember">
        SELECT * FROM mall_member m
        <where>
            <if test="record != null" >
                <if test="record.name!=null and record.name!=''">
                    and (m.name like concat('%',  #{record.name},'%')
                </if>
                <if test="record.phone!=null and record.phone!=''">
                    and (m.phone like concat('%',  #{record.phone},'%') or m.email like concat('%',  #{record.phone},'%'))
                </if>
                <if test="record.accountStatus!=null">
                    and m.account_status = #{record.accountStatus}
                </if>
                <if test="record.accountType != null" >
                    and m.account_type = #{record.accountType}
                </if>
            </if>
        </where>
        order by m.CREATED_TIME desc
    </select>
 
</mapper>