<?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.otc.mapper.OtcEntrustOrderMapper">
|
|
<select id="otcEntrustList" resultType="com.xcong.excoin.modules.otc.entity.OtcEntrustOrderEntity">
|
SELECT
|
*,
|
concat(b.first_name,b.second_name) realName
|
FROM
|
otc_entrust_order a
|
LEFT JOIN member m ON m.id = a.member_id
|
LEFT JOIN member_authentication b ON b.member_id = a.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.orderType!=null and record.orderType!=''">
|
and a.order_type= #{record.orderType}
|
</if>
|
<if test="record.status!=null and record.status!=''">
|
and a.status= #{record.status}
|
</if>
|
</if>
|
</where>
|
order by m.create_time desc
|
</select>
|
|
</mapper>
|