<?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.OtcMarketBussinessMapper">
|
|
<select id="otcShopList" resultType="com.xcong.excoin.modules.otc.entity.OtcMarketBussinessEntity">
|
SELECT
|
*,
|
concat(b.first_name,b.second_name) realName
|
FROM
|
otc_market_bussiness 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.status!=null and record.status!=''">
|
and a.status= #{record.status}
|
</if>
|
</if>
|
</where>
|
order by m.create_time desc
|
</select>
|
|
</mapper>
|