<?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>
|