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