From 44d0f6dd3d6c757a388fa9a1c7cdba71cde4bc2f Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Tue, 25 May 2021 16:12:30 +0800 Subject: [PATCH] modify --- src/main/resources/mapper/otc/OtcEntrustOrderDao.xml | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml b/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml index 9b8f5e0..1046cc1 100644 --- a/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml +++ b/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml @@ -13,9 +13,12 @@ ,a.limit_max_amount max ,b.total_order_cnt orderCnt ,b.finish_ratio finishRatio + ,d.payment_type payType from otc_entrust_order a left join otc_market_bussiness b on a.member_id=b.member_id left join member c on a.member_id=c.id + left join member_payment_method d on a.member_id=d.member_id and d.is_defualt=1 + inner join otc_black_list e on a.member_id!=e.black_member_id and e.member_id=#{record.memberId} <where> a.status=1 and a.remain_coin_amount > 0 <if test="record != null"> @@ -28,19 +31,21 @@ </select> <select id="selectEntrustOrderByOrderType" resultType="com.xcong.excoin.modules.otc.entity.OtcEntrustOrder"> - select * from otc_entrust_order + select a.*, b.payment_type payType + from otc_entrust_order a + left join member_payment_method b on a.member_id=b.member_id and b.is_defualt=1 <where> <if test="record.orderType != null and record.orderType != ''" > - and order_type = #{record.orderType} + and a.order_type = #{record.orderType} </if> <if test="record.memberId != null"> - and member_id = #{record.memberId} + and a.member_id = #{record.memberId} </if> <if test="record.status != null and record.status == 3"> - and status != #{record.status} + and a.status != #{record.status} </if> <if test="record.status != null and record.status != 3"> - and status = #{record.status} + and a.status = #{record.status} </if> </where> </select> -- Gitblit v1.9.1